lordphate Posted August 18, 2006 Share Posted August 18, 2006 Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/arshem/public_html/dating/functions.php on line 2112Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/arshem/public_html/dating/functions.php on line 2112Warning: array_merge() [function.array-merge]: Argument #3 is not an array in /home/arshem/public_html/dating/functions.php on line 2112Warning: array_merge() [function.array-merge]: Argument #4 is not an array in /home/arshem/public_html/dating/functions.php on line 2112[code]elseif($deg=='all'){$num=count_network($m_id,"1","num")+count_network($m_id,"2","num")+count_network($m_id,"3","num")+count_network($m_id,"4","num");$friend=array_merge(count_network($m_id,"1","ar"),count_network($m_id,"2","ar"),count_network($m_id,"3","ar"),count_network($m_id,"4","ar")); <==== LIne 2112 } [/code] Link to comment https://forums.phpfreaks.com/topic/17982-warning-array_merge-functionarray-merge/ Share on other sites More sharing options...
Barand Posted August 18, 2006 Share Posted August 18, 2006 I'm guessing that your function count_network() probably returns a number and not an array.The arguments in array_merge(arg1, arg2) need to be arrays - like it says in the error messages Link to comment https://forums.phpfreaks.com/topic/17982-warning-array_merge-functionarray-merge/#findComment-76948 Share on other sites More sharing options...
lordphate Posted August 18, 2006 Author Share Posted August 18, 2006 function count_network($m_id,$deg,$mod) Link to comment https://forums.phpfreaks.com/topic/17982-warning-array_merge-functionarray-merge/#findComment-76954 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.