Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP str_split — Convert a string to an array

<?php

$str = "Hello Friend";

$arr1 = str_split($str);
$arr2 = str_split($str, 3);

print_r($arr1);
print_r($arr2);

?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #PHP #Convert #string #array
ADD COMMENT
Topic
Name
2+9 =