note 50199 added to function.array-merge

From: Date: Mon, 21 Feb 2005 19:24:44 +0000
Subject: note 50199 added to function.array-merge
Groups: php.notes 
Request: Send a blank email to php-notes+get-85322@lists.php.net to get a copy of this message
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 :] ... ---- Manual Page -- http://www.php.net/manual/en/function.array-merge.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50199 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50199&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50199&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50199&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50199&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50199&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50199&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85322) next »