note 27318 added to function.split
| From: | gwyne at gmx dot net | Date: | Mon, 02 Dec 2002 02:40:03 +0000 |
| Subject: | note 27318 added to function.split | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40232@lists.php.net to get a copy of this message | ||
I was using the split function to split a string with the splitter "\", but it gave me
this error message:
"Warning: REG_EESCAPE:wtrailing backslash (\) in E:\Inetpub\wwwroot\test\split.php on line
8"
MY SCRIPT:
$mytest = "STAFF\Tester";
$arr = split ("\\", $mytest); //--> ERROR!
Is this a bug in PHP or my error? Please help!
Thanks.
Rgds,
GWYNE
gwyne@gmx.net
--
http://www.php.net/manual/en/function.split.php
http://master.php.net/manage/user-notes.php?action=edit+27318
http://master.php.net/manage/user-notes.php?action=delete+27318
http://master.php.net/manage/user-notes.php?action=reject+27318