Re: Is it possible to parse a variable by character?

From: Date: Wed, 18 Apr 2001 17:24:34 +0000
Subject: Re: Is it possible to parse a variable by character?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-49239@lists.php.net to get a copy of this message
I got reply from core developer implementing new syntax. The implementation of syntax $var{index} is not finished yet. So PHP programmers are NOT supposed to use it yet. If you are curious, take a look at php-lang list archive. Again $var{index} is NOT supposed to used. (yet) -- Yasuo Ohgaki "CC Zona" <cczona@nospam.invalid> wrote in message news:9bjdbf$aq1$1@toye.p.sourceforge.net... > In article <9bjcj6$dg6$1@toye.p.sourceforge.net>, > yohgaki@hotmail.com ("Yasuo Ohgaki") wrote: > > > I'm not sure if accessing string as array is going to be depreciated or not. > > (Or is it already depreciated???) > > I made a note of this a while ago when it came up on the list, because > initially it sounded to me too like it was being deprecated. It's not. > It's the current *method* for accessing string offsets that is expected to > be deprecated in the near future. So instead of using $string[offset], we > just should get into the habit of using $string{offset} now to save > ourselves the hassle of going back to fix it later. > > -- > CC > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#49239) next »