PHP error in_array() [function.in-array]: Wrong datatype for second argument

vbnewbie

New Member
I get the following error for the second argument even when I set the global in the function for it. The second argument is an array.\[quote\] in_array() [function.in-array]: Wrong datatype for second argument \[/quote\]$cat_idArray ( [0] => 76 [1] => 89 [2] => 81 ) PHP\[code\]for ($x = 0; $x < count($query_cat_id); $x++){ if(in_array($query_cat_id[$x], $cat_id)){ // }}\[/code\]
 
Back
Top