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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -