note 41624 added to function.spliti

From: Date: Sat, 17 Apr 2004 03:22:35 +0000
Subject: note 41624 added to function.spliti
Groups: php.notes 
Request: Send a blank email to php-notes+get-68231@lists.php.net to get a copy of this message
When using special characters such as the tab placeholder "\t" in the split function, be careful not to escape the slash by adding a slah in front of it. To signify a tab, new line or carriage return use only one slash in front of the character. For example: $cartes= "one\ttwo\tthree"; $tab_cartes = split("\t",$cartes ); $items = count($tab_cartes); for ($x = 0; $x < $items; $x++) { echo $tab_cartes[$x] . "\n"; } ---- Manual Page -- http://www.php.net/manual/en/function.spliti.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41624 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41624&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41624&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68231) next »