A string is an array of characters.
In your example, $str == "h".
----- Original Message -----
From: Rodrigo de Oliveira Costa <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 05, 2002 1:50 PM
Subject: [PHP] String to an Array
> Hi guys, I got a string that I need to be transformed into na array of
> characters, something like:
> $str ="im the one trying to do this";
> //this is the string
> I'd like to get an array that I can access something like $array and
> get the value " i ". And this foward. Anyone have any clues on this?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php