Re: Question on foreach()?

From: Date: Fri, 14 Jul 2000 12:26:38 +0000
Subject: Re: Question on foreach()?
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-24521@lists.php.net to get a copy of this message
Would be nice if we had foreach($array key $key) or something like this, foreach($array => $key) would not make sense... Uh... http://www.php.net/manual/control-structures.foreach.php: foreach(array_expression as $key => $value)
Sure, but there´s no identical way to do *just* list($key)=each($array) like foreach($array key $key) would be Of course I know what I can use foreach(array_expression as $key => $value) to get the keys, but what if I don´t need the value? regards -- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° · 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·

« previous php.dev (#24521) next »