[Solved] If in Array on PHP [closed]

[ad_1]

I’m guessing you’re trying to find out if $catId is in the $result_2 array. If so, then you’ve already answered your question with your title here.. in_array

if(in_array($catId,$result_2))

[ad_2]

solved If in Array on PHP [closed]