Re: newbie: string to char array
| From: | Marek Kilimajer | Date: | Wed, 10 Nov 2004 09:55:29 +0000 |
| Subject: | Re: newbie: string to char array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201654@lists.php.net to get a copy of this message | ||
Horst Jäger wrote:
Hi, I wonder if it is possible to convert a given string into an array of chars without using a separator. That is, is there a function mySplit with mySplit('example') == array('e', 'x', 'a', 'm', 'p' 'l' 'e') ?$chars_array = preg_split('//', 'example', -1, PREG_SPLIT_NO_EMPTY);