Warning: array_merge() [function.array-merge]: Argument #2 is not an array - Joomla! Forum - community, help and support
what possible cause of error: warning: array_merge() [function.array-merge]: argument #2 not array ?
any solution?
thanks
any solution?
thanks
argument 2 in function should array isn't array.
small example - first argument array, second argument isn't array. php function 'array_merge' demand arrays
the outcome of code be: warning: array_merge() [function.array-merge]: argument #2 not array in d:\www\zk.php on line 4
small example - first argument array, second argument isn't array. php function 'array_merge' demand arrays
code: select all
<?php
function hello ($first_argument, $second_argument)
{
array_merge($first_argument, $second_argument);
}
hello(array(0 => 'is array'), "is string not array");
?>
the outcome of code be: warning: array_merge() [function.array-merge]: argument #2 not array in d:\www\zk.php on line 4
Comments
Post a Comment