On Thu, 11 Jul 2002 12:08:59 +0100, you wrote:

>Is there an easy way to get an array of characters from a string?

$str = 'string';
$chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);
print_r($chars);

from

http://www.php.net/manual/en/function.preg-split.php

djo


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to