note 26301 deleted from function.explode by bjori
| From: | bjori@php.net | Date: | Mon, 25 Sep 2006 08:15:05 +0000 |
| Subject: | note 26301 deleted from function.explode by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-117615@lists.php.net to get a copy of this message | ||
Note Submitter: davidrickard at hotmail dot com
----
[Ed. Note: Windows browsers insert \r\n, but other platforms have their own line endings. Most
UNIX-like systems will use \n. Try <?php str_replace("\r", null, $string); ?> and
then explode()ing.]
If you want to get some form data entered in the form
Item1
Item2
Item3
At the other end you need to use
explode("\r\n",$_POST['fieldname'])
rather than just \n .