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

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

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

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code