Re: Question on foreach()?

From: Date: Fri, 14 Jul 2000 18:52:59 +0000
Subject: Re: Question on foreach()?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24564@lists.php.net to get a copy of this message
On Fri, 14 Jul 2000, Teodor Cimpoesu wrote the following to PHP Developer List : > > Would there be opposition to adding some kind of syntax that let allowed > > for getting the key instead of the value? Or is this one of those "there's > > no Right Way (tm) to do it" issues? I would be more than glad to take it > foreach (array_keys($arr) as $k) { > walk_over_keys; > } Hmm, that might be just what I needed. Just have to be creative enough, eh? Thanks, Teodor.

« previous php.dev (#24564) next »