note 46015 added to function.split

From: Date: Sun, 26 Sep 2004 21:41:33 +0000
Subject: note 46015 added to function.split
Groups: php.notes 
Request: Send a blank email to php-notes+get-77413@lists.php.net to get a copy of this message
To split (for example) the output from a <textarea> in an HTML form into separate variables at newlines: $a = split ("\\n", $the_text); didn't work for me. It just split the text at the character 'n'. $a = split ("\r\n", $the_text); did it for me. ---- Manual Page -- http://www.php.net/manual/en/function.split.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46015 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46015&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46015&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77413) next »