Re: Newbie question about operators

From: Date: Wed, 07 Apr 2004 21:31:57 +0000
Subject: Re: Newbie question about operators
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-182717@lists.php.net to get a copy of this message
arrays :-) you are defining arrays like: $x = array ( 'a' => 'Apple' , 'b' => 'Banana' , ... ); -- red Gabe wrote:
Thanks for the page. That was helpful. Just to make sure, is that operator only typically used then with foreach loops and arrays? "Matt Matijevich" <matijevich@alliancetechnologies.net> wrote in message news:s0742908.089@NW0101DSM.ALLIANCETECHNOLOGIES.NET...
[snip] foreach ($some_array as $name=>$value) { ... some code ... } [/snip] http://www.php.net/foreach will give you a good explanation.


« previous php.general (#182717) next »