note 93768 deleted from function.array-merge by salathe

From: Date: Mon, 06 Sep 2021 22:44:48 +0000
Subject: note 93768 deleted from function.array-merge by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-216891@lists.php.net to get a copy of this message
Note Submitter: Tudor ---- array_merge will merge numeric keys in array iteration order, not in increasing numeric order. For example: <?php $a = array(0=>10, 1=>20); // same as array(10, 20); $b = array(0=>30, 2=>50, 1=>40); ?> array_merge($a, $b) will be array(10, 20, 30, 50, 40) and not array(10, 20, 30, 40, 50).

« previous php.notes (#216891) next »