note 84175 deleted from function.array-merge by cmb

From: Date: Sun, 29 Sep 2019 07:35:02 +0000
Subject: note 84175 deleted from function.array-merge by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212403@lists.php.net to get a copy of this message
Note Submitter: david_douard at hotmail dot com ---- To avoid REINDEXING issues, use + operator : array_merge( array("truc" => "salut"), array("machin" => "coucou") ) returns array(2) { [0] => string() "salut" [1] => string() "coucou" } whereas array("truc" => "salut") + array("machin" => "coucou") returns array(2) { ["truc"] => string() "salut" ["machin"] => string() "coucou" }

« previous php.notes (#212403) next »