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 ° · ° . ¤ ·