note 23882 added to function.array-unshift

From: Date: Tue, 30 Jul 2002 23:00:24 +0000
Subject: note 23882 added to function.array-unshift
Groups: php.notes 
Request: Send a blank email to php-notes+get-34020@lists.php.net to get a copy of this message
array_merge() will also reindex (see array_merge() manual entry), but the '+' operator won't, so... $arrayone=array("newkey"=>"newvalue") + $arrayone; does the job. -- http://www.php.net/manual/en/function.array-unshift.php http://master.php.net/manage/user-notes.php?action=edit+23882 http://master.php.net/manage/user-notes.php?action=delete+23882 http://master.php.net/manage/user-notes.php?action=reject+23882

« previous php.notes (#34020) next »