cSmartSqlStatement::InArray2() - rstoetter/csmartsqlstatement-php GitHub Wiki

Method InArray2( )

 private   boolean rstoetter\cSmartSqlStatement\cSmartSqlStatement::InArray2(array $a_needles, array $a_haystack, boolean $icase)

The method InArray2( ) is a case insensitive in_array( )

Example:

Arguments

  • $a_needles array - <p>the array with strings to search for in $a_haystack</p>
  • $a_haystack array - <p>the array of strings to be searched for strings out of $a_needles</p>
  • $icase boolean - <p>whether the search should be case insensitive or not. It defaults to false</p>

Returns

boolean true, if one string in $a_needles was found in $a_haystack