note 21557 added to function.split

From: Date: Fri, 17 May 2002 07:27:57 +0000
Subject: note 21557 added to function.split
Groups: php.notes 
Request: Send a blank email to php-notes+get-30743@lists.php.net to get a copy of this message
split() doesn't like NUL characters within the string, it treats the first one it meets as the end of the string, so if you have data you want to split that can contain a NUL character you'll need to convert it into something else first, eg: $line=str_replace(chr(0),'',$line); -- http://www.php.net/manual/en/function.split.php http://master.php.net/manage/user-notes.php?action=edit+21557 http://master.php.net/manage/user-notes.php?action=delete+21557 http://master.php.net/manage/user-notes.php?action=reject+21557

« previous php.notes (#30743) next »