In PHP, You can convert a string to an array using str_split function.
array str_split ( string $string [, int $split_length = 1 ] ) /* $string=The input string. $split_length=Maximum length of the pieces. */
<?php $str = "Awesome World"; $arr1 = str_split($str); $arr2 = str_split($str, 3); echo "<pre>"; print_r($arr1); print_r($arr2); echo "</pre>"; /* This will output.. Array (  => A  => w  => e  => s  => o  => m  => e  =>  => w  => o  => r  => l  => d ) Array (  => Awe  => som  => e w  => orl  => d ) */ ?>
If the optional split_length parameter is specified, the returned array will be broken down into pieces with each being split_length in length, otherwise each piece will be one character in length.
FALSE is returned if split_length is less than 1. If the split_length length exceeds the length of string, the entire string is returned as the first (& only) array element.