"Kevin Waterson" <[EMAIL PROTECTED]> wrote:
> What is the best method to convert a string to an array
>
> I need to able to loop through each letter of the string
> not just use $string[47]

You can find out how long it is using strlen(), then loop through it using
your favorite looping construct.  You could also easily convert it to an
array at that point, but unless you need each character as an array element
for a later operation it doesn't seem very efficient.  I don't think
explode() will let you use a separator of '', but you might look at that as
well.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/



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

Reply via email to