title: PHP String Comparison
body: <p>I have two strings that look the same when I echo them, but when I <code>var_dump()</code> them they are different string types:</p>
  
  <pre><code>Echo:
  http://blah
  http://blah
  var dump:
  string(14) "http://blah"
  string(11) "http://blah"
  strToHex:
  %68%74%74%70%3a%2f%2f%62%6c%61%68%00%00%00
  %68%74%74%70%3a%2f%2f%62%6c%61%68
  </code></pre>
  
  <p>When I compare them they return false. How can I manipulate the string type so that I can perform a comparison that returns true. What is the difference between string 11 and string 14? I am sure there is a simple resolution but have not found anything yet, no matter how I implode, explode, UTF8 encode etc the strings they will not compare or change type.</p>
  
  <p>Thanks for your help!</p>
  
  <p>Peter.</p>