note 124495 deleted from function.array-merge by salathe

From: Date: Mon, 06 Sep 2021 22:43:14 +0000
Subject: note 124495 deleted from function.array-merge by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-216877@lists.php.net to get a copy of this message
Note Submitter: ousseni dot work at gmail dot com ---- A good function to merge by keys /** * @param $array1....$arrayn */ public function array_merge_keys(){ $args = func_get_args(); $result = array(); foreach($args as $array) { foreach($array as $key=>$value) { $result[$key] = $value; } } return $result; }

« previous php.notes (#216877) next »