I am doing a very small online store application in PHP. So I have an array of maps in PHP. I want to search for a string (a product) in the array. I looked at array_search
iterate through the array and use substr if you want partial matches:
http://php.net/manual/en/function.substr.php
this should be sufficient if you have a "small" store...