how would i split something submitted by a form by each letter?
Example:
Submitted Text: Hello
Split into: $letter[0] = "H" $letter[1] = "e" $letter[2] = "l" $letter[3] = "l" $letter[4] = "o"
Thanks a lot!
Hi,
try following:
$str = 'string'; $chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); print_r($chars);
wizkid
thanks!!
it works