int has_value(string haystack, string value) int has_value(string haystack, int value) int has_value(array|mapping|object|program haystack, mixed value)
Description
Search for value in haystack .
Returns
Returns 1 if value is in the value domain of haystack ,
or 0 (zero) if not found.
This function is in all cases except when both arguments are strings
equivalent to (but sometimes faster than):
search(values(haystack ), value ) != -1
If both arguments are strings, has_value() is equivalent to: