#20754 [Opn->Bgs]: PROBLEM WITH SPLIT FUNCTION
| From: | sniper@php.net | Date: | Mon, 02 Dec 2002 02:56:38 +0000 |
| Subject: | #20754 [Opn->Bgs]: PROBLEM WITH SPLIT FUNCTION | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26345@lists.php.net to get a copy of this message | ||
ID: 20754
Updated by: sniper@php.net
Reported By: ahhsee@ntu.edu.sg
-Status: Open
+Status: Bogus
Bug Type: Strings related
Operating System: Win 2k
PHP Version: 4.2.3
New Comment:
Your regex is broken, it should be:
$arr = split ("\\\\", $mytest);
Previous Comments:
------------------------------------------------------------------------
[2002-12-01 20:36:35] ahhsee@ntu.edu.sg
I was trying to split the string with the splitter "\", but it gives 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!
Please help!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20754&edit=1