Jump to content

how to find values in a array?


Monkuar

Recommended Posts

$correct = array("APNG","TIFF","RAW","BMP","SVG","WEBP","EXIF","PNM","PBM","PGM","PPM");

 

 

Now:

 

if (in_array('PGM','TIFF',$correct)){
echo " You have 2 correct! ";
}

 

 

 

How would I go about making it search for arrays in arrays?

 

The above does not WORK because it's searching for 2? How can i search for 2 or more?

Link to comment
https://forums.phpfreaks.com/topic/268075-how-to-find-values-in-a-array/
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.