Re: String to an Array

From: Date: Fri, 06 Dec 2002 18:12:30 +0000
Subject: Re: String to an Array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127295@lists.php.net to get a copy of this message
Hello, "Rodrigo de Oliveira Costa" <thenewsource@ieg.com.br> wrote: > 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? You can actually treat $str "like" an array so $str[0] would be "i". If you're after something else, check the archives for more info: http://marc.theaimsgroup.com/?t=100526380400016&r=1&w=2 - E

« previous php.general (#127295) next »