note 37635 added to function.split

From: Date: Fri, 21 Nov 2003 14:33:58 +0000
Subject: note 37635 added to function.split
Groups: php.notes 
Request: Send a blank email to php-notes+get-60754@lists.php.net to get a copy of this message
If you want to use split to check on line feeds (\n), the following won't work: $line = split("\n", $input_several_lines_long); You really have to do this instead, notice the second slash: $line = split("\\n", $input_several_lines_long); Took me a little while to figure out. ---- Manual Page -- http://www.php.net/manual/en/function.split.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37635 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37635&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37635&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60754) next »