RE: [PHP] Null character as field seperator in a string.
| From: | Dave MacRae | Date: | Mon, 29 Apr 2002 12:13:52 +0000 |
| Subject: | RE: [PHP] Null character as field seperator in a string. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95134@lists.php.net to get a copy of this message | ||
> Hey..
>
> yeah I might..
>
>
> I don't know if I am right or just blabbering crap
>
> but try to add these param's to your regex statement..
>
>
> preg_split("/\0/i", $buffer);
>
>
> note the i.. It should let it read past newlines.. although you're prob is
> with null (\0) chars..
>
>
> as I said.. Don't know if I am on the right track.. but it's
> worth a go eh??
Unfortunatly I get the message
"Warning: No ending delimiter '/' found in ...." when I try this. It appears
that PHP is interpreting the \0 as a string terminator for the pattern match
:(
Dave