php4/str_split
| 2764 | no demo link | [ code ] | 2006-05-23 21:03:02 |
porting of str_split php5 function.
$str = "Hello Friend";
$arr1 = str_split($str);
$arr2 = str_split($str, 3);
echo
'<pre>'.print_r($arr1, true).'</pre>'.
'<pre>'.print_r($arr2, true).'</pre>';
$str = "Hello Friend";
$arr1 = str_split($str);
$arr2 = str_split($str, 3);
echo
'<pre>'.print_r($arr1, true).'</pre>'.
'<pre>'.print_r($arr2, true).'</pre>';