title: whitespace/spaces with strrpos
body: <p>I am reading and manipulating data from a series of text files. I noticed that my function for trying to break up some of the data by a space doesn't always work.</p>
  
  <p>For instance I have</p>
  
  <p><code>MOST_RECENT_RESULT 100</code> as part of my text file. I have been using</p>
  
  <p><code>$pos = strrpos($string, ' ')</code></p>
  
  <p>and echoing out where the last space from the right is to check it is working ok. This works for most of the files. But some have blank positions returned, which I found odd. So I copied the string from my browser and directly ran it in a script and it then returned the correct position. Which leads me to believe that there is some kind of whitespace code or something i'm missing here when accessing the files, I have tried <code>\r</code> <code>\v</code> <code>\n</code> to no avail. How do I find out exactly what character is in the string. If that is indeed the actual problem?</p>