Re: Character Array
| From: | David Otton | Date: | Thu, 11 Jul 2002 11:36:50 +0000 |
| Subject: | Re: Character Array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107098@lists.php.net to get a copy of this message | ||
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