note 68279 deleted from function.array-merge by levim
| From: | levim@php.net | Date: | Mon, 24 Feb 2014 22:55:26 +0000 |
| Subject: | note 68279 deleted from function.array-merge by levim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-198684@lists.php.net to get a copy of this message | ||
Note Submitter:
----
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...