Error With array_search

KerSliteMit

New Member
I seem to have hit an error with array search. Below is my code.\[code\]$allowedTypes = array( 'image/gif', 'image/jpg', 'image/jpeg', 'image/png');if(array_search("image/gif", $allowedTypes)) { print "true";} else { print "false";}\[/code\]It always prints false. Even though image/gif is in the list of allowed types.
 
Back
Top