search in array
Posted: Mon Oct 13, 2003 11:36 am
Hello all,
I want to perform a search through my array if a specific value is contained in one of the array elements.
php function search_array() is not helpful to me because it returns true only if the the values are the same.
I want to do a LIKE search meaning if there is a substring in the array element that matches my search!
I know I can loop the array myself and use substr.
is there a better way?
Thanks
I want to perform a search through my array if a specific value is contained in one of the array elements.
php function search_array() is not helpful to me because it returns true only if the the values are the same.
I want to do a LIKE search meaning if there is a substring in the array element that matches my search!
I know I can loop the array myself and use substr.
is there a better way?
Thanks