Split the given string by a regular expression.
declaration of preg_split
array preg_split ( string $pattern , string $subject [, int $limit ] [, int $flags ] )
test preg_split online
comments for preg_split
On 24. Mar 2012 11:30 butzi wrote:
@devvyn: i will take a look at this. But will take some time.
On 20. Mar 2012 18:21 devvyn wrote:
I really like this tool, because it specifically lets me test preg_split without typing up test code. If I could add one improvement to this it would be the ability to choose multiple flags, such as in the expression (PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE). I believe bitwise OR is the proper way to combine, and a multiple select box here should do the trick.
On 01. Nov 2010 00:02 butzi wrote:
can you giva an example for this? Generally you can always write \ or \\ in strings. They are the same, when no special char is following.
more comments for preg_split
There are some more comments for preg_split(). To see them all click here.