blackwater dev wrote:
How can I take a string and create an array?

Example,
A12B05C45D34

I need to split this into chunks of three A12,B05,C45..etc?

Thanks!


$chunks = preg_split('/(.{3})/', $str, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to