note 50199 deleted from function.array-merge by nlopess

From: Date: Mon, 21 Feb 2005 20:09:38 +0000
Subject: note 50199 deleted from function.array-merge by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-85330@lists.php.net to get a copy of this message
Note Submitter: FanFataL at FanFataL dot pL ---- There is some kind of upgrade in array_merge function in PHP5. Here is the sample: <?php $array1=array(1,2,3); $array2=false; print_r(array_merge($array1,$array2)); ?> In PHP4 it's output: Array ( [0] => 1 [1] => 2 [2] => 3 [3] => ) In PHP5 it's output: Warning: array_merge() [function.array-merge]: Argument #2 is not an array Greatings 4 all :] ...

« previous php.notes (#85330) next »