Is it possible for the function?
Regular expression modifiers are not prepended, and PHP doesn't use g as modifier (http://us.php.net/manual/en/reference.pcre.pattern.modifiers.php).
kiamlaluno
2010-08-12 02:44:31
Ah crap, I was thinking of JS. Thanks for catching it.
Matt Williamson
2010-08-12 02:58:15
A:
If you execute, in example
$str = 'hypertext language programming';
$chars = preg_split('/ /', $str);
The array $chars will contain three items (hypertext, language, programming).
kiamlaluno
2010-08-12 02:40:58