note 18755 added to function.array-push

From: Date: Mon, 04 Feb 2002 05:19:47 +0000
Subject: note 18755 added to function.array-push
Groups: php.notes 
Request: Send a blank email to php-notes+get-26197@lists.php.net to get a copy of this message
I noticed that when building a large array, array_push($array, $value) didn't seem to be quite as fast as $array[] = $value. Using the latter would therefore be a useul optimisation if you can guarantee unique keys (e.g. reading from a DB table with an id field). Static. -- http://www.php.net/manual/en/function.array-push.php http://master.php.net/manage/user-notes.php?action=edit+18755 http://master.php.net/manage/user-notes.php?action=delete+18755 http://master.php.net/manage/user-notes.php?action=reject+18755

« previous php.notes (#26197) next »