PHP ,convert string to array? -
such :
defghijklmn into array like:
$diskvolume = array('d','e','f','g','h','i','j','k','l','m','n'); because explode() doesn't work kind of string.
thank much!!
use str_split() split string individual characters:
$diskvolume = str_split($string); 
Comments
Post a Comment