|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-12-01 20:36 UTC] ahhsee at ntu dot edu dot 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!
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 23:00:01 2025 UTC |
Your regex is broken, it should be: $arr = split ("\\\\", $mytest);