private function SelectQuery_sqlsrv::stripos_arr in Drupal driver for SQL Server and SQL Azure 7.2
Same name and namespace in other branches
- 7.3 sqlsrv/select.inc \SelectQuery_sqlsrv::stripos_arr()
1 call to SelectQuery_sqlsrv::stripos_arr()
- SelectQuery_sqlsrv::expressionContainsAggregate in sqlsrv/
select.inc - Verify in an expression has an aggregate.
File
- sqlsrv/
select.inc, line 199
Class
Code
private function stripos_arr($haystack, $needle) {
if (!is_array($needle)) {
$needle = array(
$needle,
);
}
foreach ($needle as $what) {
if (($pos = stripos($haystack, $what)) !== false) {
return $pos;
}
}
return FALSE;
}