Yes I know that, hoping you could fix the code with the $key=>$value change.

Array_keys is not clean because your simply calling an unneeded function on an already good array? Why on earth would you waste overhead (O(n)) when its simply on same line? ... I think this discussion has went really off topic as its not relating to memcache but more PHP.


Chris Goffinet
[EMAIL PROTECTED]



On Nov 2, 2007, at 10:28 PM, mike wrote:

On 11/2/07, Chris Goffinet <[EMAIL PROTECTED]> wrote:
The array_values is not needed, its already an array. Just set it up
as $key=>$value and do not do extra overhead.

Actually it would be:

foreach($keys as $dontcare => $key) {

But wouldn't

foreach(array_keys($keys) as $key) { be just as clean?

Reply via email to