PHP convert string to array
You can loop through your string and return each character or a set of characters using substr in php. Below is a simple loop.
$str = 'abcdef';
$arr = Array();
for($i=0;$i<strlen($str);$i++){
$arr[$i] = substr($str,$i,1);
}
/*
OUTPUT:
$arr[0] = 'a';
$arr[1] = 'b';
$arr[2] = 'c';
$arr[3] = 'd';
$arr[4] = 'e';
$arr[5] = 'f';
*/
Use str_split
http://www.php.net/manual/en/function.str-split.php