note 27428 added to function.array-merge

From: Date: Thu, 05 Dec 2002 16:23:59 +0000
Subject: note 27428 added to function.array-merge
Groups: php.notes 
Request: Send a blank email to php-notes+get-40383@lists.php.net to get a copy of this message
Does anyone know which one would gives a better performance? Using: merge function in the contact of; $a = array_merge($a, arrray("$newKey" => "$newVal")); or simply do: $a['$newKey'] = $newVal; Thank you. -- http://www.php.net/manual/en/function.array-merge.php http://master.php.net/manage/user-notes.php?action=edit+27428 http://master.php.net/manage/user-notes.php?action=delete+27428 http://master.php.net/manage/user-notes.php?action=reject+27428

« previous php.notes (#40383) next »