Split strings into character by character and store it in array using PHP - PHP Views : 610
Tagged in : PHP
1 0
Send mail
Use str_split function to split strings into character by character and store it in an array.
Example:
$str="Hai";
$str1=str_split($str);

Output:
$str1[0]="H";
$str1[1]="a";
$str1[2]="i";
By Nirmala, On - 2009-09-04



    Login to add Comments .