Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php search on array

//array_search
$result = array_search("apple", $fruit_array); // return index or false

//in_array
$result = in_array("apple", $fruit_array); // return true or false
 
PREVIOUS NEXT
Tagged: #php #search #array
ADD COMMENT
Topic
Name
7+1 =