I need to parse/extract data out of string that is delimited by ASCII 0 character.
When I try to use explode('0',$mydata) it converts mydata to an array incorrectly.
Some array elements are empty and some are split in the middle.
I also tried str_replace('0','#', $mydata) and preg_replace('0','#', $mydata) - they both do not work at all.
It sounds like I have to parse string manually byte by byte myself. Is there any simple solution?
Thanks,
Jane