note 20601 deleted from function.explode by nlopess
| From: | nlopess@php.net | Date: | Tue, 04 May 2004 13:22:47 +0000 |
| Subject: | note 20601 deleted from function.explode by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-69197@lists.php.net to get a copy of this message | ||
Note Submitter: dadarden@iti2.net
----
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);