Guys, not to confuse you, but I think there is a more elegant way doing
it that. I had the same issue once long ago (2-3 years ago?) and had put
it up on the mailing lists too.

Gotta remember what it was and for what project then find the code in my
libraries. I really think i accomplished it without preg_split()...


--
Maxim Maletsky
[EMAIL PROTECTED]



"@ Edwin" <[EMAIL PROTECTED]> wrote... :

> Hello,
> 
> 
> "Maxim Maletsky" <[EMAIL PROTECTED]> wrote:
> 
> 
> [snip]
> > As of actually converting it you could do that very loop and have an:
> > $atr_arr[] = $str[$i] in it, or, even more elegantly by using split()
> > function or "...chunk.." something function(), don't remember right now.
> [/snip]
> 
> Perhaps, this would remind you...  :)
> 
> <?php
>   $str = 'string';
>   $chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);
>   print_r($chars);
> ?>
> 
> That was from the manual:
>   http://www.php.net/manual/en/function.preg-split.php
> 
> - E
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


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

Reply via email to