note 60362 deleted from function.array-merge by levim

From: Date: Mon, 24 Feb 2014 22:54:52 +0000
Subject: note 60362 deleted from function.array-merge by levim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-198681@lists.php.net to get a copy of this message
Note Submitter: seva-php at zend dot com ---- Since my comment from 12-Jul-2004 02:42 with <? function array_merge_php4() ?> was deleted and the complex one added by Barpfotenbaer (09-Jul-2005 06:33), - here is the simpler and faster solution: <? /* works only with PHP 5 */ function array_merge_php4($array1, $array2) { foreach ($args = func_get_args() as &$arg) { $arg = (array)$arg; } return call_user_func_array('array_merge',$args); } ?>

« previous php.notes (#198681) next »