In windows the newline consists of two characters \r\n and in MAC OS the newline character is just a carrige return \r. To shaveo ff the last n chracters:
PHP Code:$str = substr($str, -1);
|
Results 1 to 6 of 6
Thread: Cut off last char of a stringThreaded View
|
Click Here to Expand Forum to Full Width |