I am trying to explode a string on what looks like to be a null character.
This is what is what I am using: $exp = explode('\x00', $bin);
.
Though this does not work. However, if I do $exp = explode($bin[5], $bin);
(where character 5 of $bin
is this character I want to explode on) it works fine.
If I do var_dump($bin[5])
It shows me square block with a question mark in it (), and in the view source I get: �
Can anyone tell me what the best way would be to explode on this character? or even if it is the null character (which according to ascii tables it is, unless I am reading it all wrong).
Thanks