You are here

private function Select::stripos_arr in Drupal driver for SQL Server and SQL Azure 8

Same name and namespace in other branches
  1. 8.2 drivers/lib/Drupal/Driver/Database/sqlsrv/Select.php \Drupal\Driver\Database\sqlsrv\Select::stripos_arr()
1 call to Select::stripos_arr()
Select::__toString in drivers/lib/Drupal/Driver/Database/sqlsrv/Select.php
Implements PHP magic __toString method to convert the query to a string.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Select.php, line 202
Definition of Drupal\Driver\Database\sqlsrv\Select

Class

Select

Namespace

Drupal\Driver\Database\sqlsrv

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;
}