note 1921 deleted from function.explode by jimw
| From: | jimw@php.net | Date: | Fri, 07 Dec 2001 21:10:10 +0000 |
| Subject: | note 1921 deleted from function.explode by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21986@lists.php.net to get a copy of this message | ||
[Editor's Note: Or use \0 escape sequence
ie.
<?
$newarray = explode ("\0", $nullsepstr);
?>
--zak@php.net]
If you have a string seperated by nulls, one good way to explode () it is to use urlencode, for
example:
<?
$newarray = explode ("%00", rawurlencode ($nullsepstr));
?>
This will explode your string properly.