Try something like this:
$string = 'A12B05C45D34';
$string = chunk_split($string, 3, ':'); //Should give you 'A12:B05:C45:D34';
$array = explode(":",$string);
Cheers,
Gareth
On 29 Sep 2004, at 15:40, 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!
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php