stringSearchArray
(/rs/public/functions.php)
stringSearchArray -- Searches a string for any substring in a passed array.
Description
bool stringSearchArray
($string, $arrayOfChars)
This function searches $string for any of the strings contained in the array $arrayOfChars and returns boolean true if at least one match is found. Returns boolean false otherwise.
Examples
stringSearchArray ("foo", array ("bar")) /* Returns false */
stringSearchArray ("foo", array ("f", "b")) /* Returns true */
Related Functions
None.
Dependencies
None.
Function Index
|