I am trying to ready some text from a file and for some reason there is always: '
' character that is added add the end of every line. The charset of the file is ASCII so I looked up ascii code and all and thsi code is not htere.
When I search on google for '
' it searches for empty....I am guessing that this code means something but I can't even google it....
UPDATE: I can't edit the file to remove them because user updates them. As it is in the file, I don't see these charcters. But when I try to the read value to a variable it returns false because there is i the &13 code. Here is when I check the response of the code: 'Notes :'
And when I check the output: 'Notes:'
The way I figured out for these extra characters is because my return array had a length of 1 more than the string I was trying to compare with. Is there any way I can remove the code?
I tried teh str_replace() without any succes.
Thanks for your help, Ara
It's a carriage return () used in DOS files
use &
; instead of &
alone.
After I figured out what hte code means, it was easier for me to google it.
To read the code without these, I use the trim() function.
Thanks all for answering.