note 68279 added to function.array-merge

From: Date: Thu, 20 Jul 2006 15:45:42 +0000
Subject: note 68279 added to function.array-merge
Groups: php.notes 
Request: Send a blank email to php-notes+get-114977@lists.php.net to get a copy of this message
Whoops!!! The 2nd posting before this one about the array_merge_alternative1() I made. Replace part of that code with this one below... --snip-- /* 07/20/2006 - Added the if statement to avoid the warning message spitted out by array_unique() function, "Warning: Wrong datatype in array_unique() call"... */ if ($xyz != 0) { $new_array2 = array_unique($new_array1); /* Work a lot like DISTINCT() in SQL... */ } else { $new_array2 = array(); } --snip-- Because the unique_array() unexpectly give a warning message when it's empty... Sorry about that... ---- Server IP: 216.194.113.175 Probable Submitter: 64.31.141.2 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.array-merge.php Edit -- http://master.php.net/note/edit/68279 Del: integrated -- http://master.php.net/note/delete/68279/integrated Del: useless -- http://master.php.net/note/delete/68279/useless Del: bad code -- http://master.php.net/note/delete/68279/bad+code Del: spam -- http://master.php.net/note/delete/68279/spam Del: non-english -- http://master.php.net/note/delete/68279/non-english Del: in docs -- http://master.php.net/note/delete/68279/in+docs Del: other reasons-- http://master.php.net/note/delete/68279 Reject -- http://master.php.net/note/reject/68279 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114977) next »