How would you specify a regex to convert string into array using preg_split?
Is there some symbol specyfying a place
between letters ?
s t r i n g => array('s', 't', 'r', 'i', 'n', 'g') ^ ^ ^ ^ ^
You can access a string's characters with an index without declaring it as an array.
$string = "foo"; echo $string{0}; //outputs f
http://www.php.net/substr (has an example)
Maybe this will solve your problem without using preg_split?
-- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com ----------------------- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing."
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php