Jump to content

[SOLVED] Determine if a variable exists in an array?


zebaron

Recommended Posts

Hi, what I would like to do is create an array of several different numbers ($num_array), and then check if a number ($num) is already stored inside that array, and return a true or false.

 

Is there a function that does this already? I searched the docs a bit but didn't find anything.

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.