php array in string to array code example
Example 1: string to array in php
print_r(explode(',',$yourstring));
Example 2: php convert string to chars
<?php
$str = "Hello Friend";
$arr1 = str_split($str);
$arr2 = str_split($str, 3);
print_r($arr1);
print_r($arr2);
?>
Example 3: string to array php
str_split ( string $string [, int $split_length = 1 ] ) : array