About -> Split Function manual...
| From: | Tyson | Date: | Wed, 17 Oct 2001 13:41:10 +0000 |
| Subject: | About -> Split Function manual... | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-7045@lists.php.net to get a copy of this message | ||
coz, i add an note to quick.
havn't check it.
I am so sorry about it.
http://www.php.net/manual/en/function.split.php
Will you modify it ?
==============
tyson@tcchen.org
17-Oct-2001 07:31
example..
$arr_var = "A|B|C|D";
$pat = "\|";
$arr_val = split ($pat,$arr_var);
while(list(,$val)=each($arr_val)) {
echo $val."\n";
}
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
================
Thanks a lot.
Best regard,
-Tyson-
--
PGP: <http://TcCHEN.ORG/Tyson.asc>
MSN: <tysonjnd@hotmail.com>
ICQ UIN: 21681147
<Tyson@TcCHEN.ORG / Tyson@AVBody.COM>