Re: String to an Array

From: Date: Fri, 06 Dec 2002 18:05:07 +0000
Subject: Re: String to an Array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127294@lists.php.net to get a copy of this message
A string is an array of characters. In your example, $str[4] == "h". Matt ----- Original Message ----- From: Rodrigo de Oliveira Costa <thenewsource@ieg.com.br> To: <php-general@lists.php.net> 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[0] and > get the value " i ". And this foward. Anyone have any clues on this? > > Thanks, > Rodrigo > >

« previous php.general (#127294) next »