Hello,
I've posted just 10 minutes ago and I have problem with recognizing ENTER character (NEW LINE). I think that is the problem because I'm reading from one file (line by line) and at the end of every line I have comma character "," which I want to remove.
I took a substring:
$test = substr($myString,strlen($myString)-2,strlen($myString)-1);
print $test; // this print COMMA simbol ","
if ($test == ",") // this one return FALSE! Why?
Is there some trick with NEW LINE simbol because all my lines are one bellow eachother. How to recognize this simbol?
Thanks