note 45311 added to function.split
| From: | gsokolatelkadotpwdotedudotpl at osu1 dot php dot net | Date: | Wed, 01 Sep 2004 21:42:35 +0000 |
| Subject: | note 45311 added to function.split | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-75900@lists.php.net to get a copy of this message | ||
Yeah,
we can definately draw some conclusions regarding this function:
When you get a warning with "REG_EMPTY" it's probably a split() (or ereg(),
ereg_replace) function with special regex characters supplied, like the pipe (|) or parantheses.
It's safe to use explode() since it does not require a regex, but a normal string.
split("|",....) will not work
split("\|",....) on the contrary.
Well, for those who are getting delusions after hours spent composing regular expressions with
little effect, a syntax checker:
http://www.bitesizeinc.net/demo.regexp.html
----
Manual Page -- http://www.php.net/manual/en/function.split.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45311
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45311&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45311&report=yes
Search -- http://master.php.net/manage/user-notes.php