note 16131 added to function.split
| From: | tyson at tcchen dot org | Date: | Wed, 17 Oct 2001 11:31:26 +0000 |
| Subject: | note 16131 added to function.split | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19038@lists.php.net to get a copy of this message | ||
example..
$arr_var = "A|B|C|D";
$pat = "\|";
$arr_val = split ($pat1,$abc1);
echo "<br>";
while(list(,$val)=each($arr_val)) {
echo $val."<br>";
}
Check your $pat variable.
If it is a Meta-caracter.
you must write "\|" in the pattern.
Check this url [Meta-caracters]
http://www.php.net/manual/en/pcre.pattern.syntax.php
-t
--
http://www.php.net/manual/en/function.split.php
http://master.php.net/manage/user-notes.php?action=edit+16131
http://master.php.net/manage/user-notes.php?action=delete+16131
http://master.php.net/manage/user-notes.php?action=reject+16131