Web >> Development >> PHP >>  How locate the position of a value in an array

array_search($valuetosearch,$arraytosearchin) if found, returns the array index otherwise returns FALSE for comparison purposes pls use either === or !== operator as the normal array has first index of 0 which may be treated as FALSE by non-strict boolean operators (== and !=)

Deals @yubeshop.com