I am trying to split a string by a non printable ascii char 178 and it does kind of work
but explode() will keep delimeter in splitted strings if delimiter is non printable, meaning that
every array element will contain chr 178. I hope it does not sound too crazy because
when I did trace this behaivor I could not believe it myself.
$Delim=chr(178);
$Data=explode($Delim,Content);
CentOS/PHP 5.2.10 (and same problem on Debian)
I am trying to split a string by a non printable ascii char 178 and it does kind of work
but explode() will keep delimeter in splitted strings if delimiter is non printable, meaning that
every array element will contain chr 178. I hope it does not sound too crazy because
when I did trace this behaivor I could not believe it myself.
$Delim=chr(178);
$Data=explode($Delim,Content);
CentOS/PHP 5.2.10 (and same problem on Debian)
|
|
Search Webmaster Help and Solution
explode problem with delimeter chr 178Related ItemsQuery failed: connection to localhost:3354 failed (errno=111, msg=Connection refused). |
