turn text into php code example
Example 1: 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 2: string to array php
str_split ( string $string [, int $split_length = 1 ] ) : array