Usage
PHP
nebula()->in_array_any($needles, $haystack)
Parameters
$needles
(Required) (Array) An array of elements to look for
Default: None
$haystack
(Required) (Array) An array of elements to search within
Default: None
Additional Notes
This function will return boolean. True if any of the needles are found, and false if none of them are.
Source File
Located in /libs/Utilities/Utilities.php on line 868.
No Hooks
This function does not have any filters or actions available. Request one?
PHP
public function in_array_any($needles, $haystack){ if ( is_string($haystack) ){ $haystack = array($haystack); //Convert to an array if a string is provided } return (bool) array_intersect($needles, $haystack); }
Override
This function can not be short-circuited with an override filter. Request one?