Is there a way to put each part of a string matching a regex into an
array? Example:
$string = "-----_-_--- --_-_-- random text here-_";
$array = regextoarray($string,"[-_]{1,}");
//Produces array of "-----_-_---","--_-_--","-_"
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Re: [PHP] Put text matching regex into array? Leif K-Brooks
- Re: [PHP] Put text matching regex into array? Jason Wong
- [PHP] Re: Put text matching regex into array? achillex
- Re: [PHP] Re: Put text matching regex into array? Wico de Leeuw