Multiget/intelligent generic PHP wrapper function...
thoughts/advice wanted
Chris Goffinet
goffinet at yahoo-inc.com
Sat Nov 3 05:32:42 UTC 2007
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
goffinet at yahoo-inc.com
On Nov 2, 2007, at 10:28 PM, mike wrote:
> On 11/2/07, Chris Goffinet <goffinet at yahoo-inc.com> 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?
More information about the memcached
mailing list