note 20601 added to function.explode

From: Date: Tue, 09 Apr 2002 16:25:54 +0000
Subject: note 20601 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-29020@lists.php.net to get a copy of this message
To explode on a newline (or other special character) enclose the character in double quotes. Or chr(10) can be used. $myarray = explode("\n",$stringdata); $myarray = explode(chr(10),$stringdata); -- http://www.php.net/manual/en/function.explode.php http://master.php.net/manage/user-notes.php?action=edit+20601 http://master.php.net/manage/user-notes.php?action=delete+20601 http://master.php.net/manage/user-notes.php?action=reject+20601

« previous php.notes (#29020) next »