note 39679 added to function.array-combine

From: Date: Sat, 07 Feb 2004 08:25:37 +0000
Subject: note 39679 added to function.array-combine
Groups: php.notes 
Request: Send a blank email to php-notes+get-64751@lists.php.net to get a copy of this message
In response to alan-smith at belcenter dot com on Jan 2004, your solution won't behave correctly with arrays that don't follow a sequencial key order. e.g. array('1' => 'blah', 'foo' => 'bar') Instead of using for ($i = 0; $i < $lg; $i++) use array_map() or next() functions. Cheers, Tudor. ---- Manual Page -- http://www.php.net/manual/en/function.array-combine.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39679 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39679&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39679&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64751) next »