Re: muli-variable variables ? (something like that)

From: Date: Wed, 08 May 2002 21:15:26 +0000
Subject: Re: muli-variable variables ? (something like that)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-96675@lists.php.net to get a copy of this message
Nathan wrote: > > Anyone that wants some more info on "curly" syntax... > http://www.php.net/manual/en/language.types.string.php > and scroll down a bit. Took me a little while > to find it, since you can't really search for a {. Hmmm i knew most of that stuff except that you were supposed to use $foo{3} syntax to get the character. I've been using $foo[3] syntax to get a character... should that work the way it does? $foo = 'yaaaaaay'; echo ($foo{0} === $foo[0] ? 'Same!' : 'Different!')."\n"; Cheers, Rob. -- .-----------------. | Robert Cummings | :-----------------`----------------------------. | Webdeployer - Chief PHP and Java Programmer | :----------------------------------------------: | Mail : mailto:robert.cummings@webmotion.com | | Phone : (613) 731-4046 x.109 | :----------------------------------------------: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `----------------------------------------------'

« previous php.general (#96675) next »