Re: newbie: string to char array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux