note 117557 deleted from function.array-merge by salathe

From: Date: Mon, 06 Sep 2021 22:48:03 +0000
Subject: note 117557 deleted from function.array-merge by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-216916@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- As PHP 5.6 you can use array_merge + "splat" operator to reduce a bidimensonal array to a simple array: <?php $data = [[1, 2], [3], [4, 5]]; print_r(array_merge(... $data)); // [1, 2, 3, 4, 5]; ?>

« previous php.notes (#216916) next »