Answers for "php convert string to chars"

PHP
0

php convert string to chars

<?php

$str = "Hello Friend";

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

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

?>
Posted by: Guest on April-30-2020

Code answers related to "php convert string to chars"

Browse Popular Code Answers by Language