|
|
Split strings into character by character and store it in array using PHP - PHP
|
Views : 610
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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 |
|
|
|