str_split() function used to convert a string into array.
<?php
$str = “Hello”;
$arr = str_split($str);
print_r($arr);
?>
OUTPUT : Array ( [0] => H [1] => e [2] => l [3] => l [4] => o )
str_split() function used to convert a string into array.
$str = “Hello”;
$arr = str_split($str);
print_r($arr);
OUTPUT : Array ( [0] => H [1] => e [2] => l [3] => l [4] => o )