note 26301 modified in function.explode by kennyt
| From: | kennyt@php.net | Date: | Sat, 28 Feb 2004 20:32:41 +0000 |
| Subject: | note 26301 modified in function.explode by kennyt | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65955@lists.php.net to get a copy of this message | ||
[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 .
--was--
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 .
http://www.php.net/manual/en/function.explode.php