Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find if the value is inside array?

Status
Not open for further replies.

seahorse123

Programmer
Jul 25, 2005
39
0
0
US
In php file I have a value for example $a=40, and an array $a[]=[10,20,30,40]
is there a function to find if this variable is one of the element of the array? thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top