Jump to content

in_array doesn't work


sniperscope

Recommended Posts

I have something like below

 

$j = explode("-", $ROW['options']);
if(array_search("src_str", $j) == false) echo '_no';      // This doesn't work

 

Also i tried

$j = explode("-", $ROW['options']);
if(!in_array("src_str", $j)) echo '_no';      // This also doesn't work

 

Is this bug or am i doing something wrong?

Link to comment
https://forums.phpfreaks.com/topic/251162-in_array-doesnt-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.