title: The true condition does not work
body: <p>I have a string like 'nameabc' in a  PHP function. I check if the last three character of a string is 'abc' it should remove it and return the remaining string.this is my condition:   </p>
  
  <pre><code>$name="nameabc";
  $last_char=substr($name,-4);   //it returns the 'abc'
  if($last_char == 'abc')   //this condition does not return true
  $real_name=substr($name,0,-4);
  </code></pre>
  
  <p>I do not know what is the problem.</p>