You are here

private function fastcacheitem::startsWith in Drupal driver for SQL Server and SQL Azure 7.3

Same name and namespace in other branches
  1. 7.2 sqlsrv/fastcacheitem.inc \fastcacheitem::startsWith()

Aux starsWith string.

1 call to fastcacheitem::startsWith()
fastcacheitem::clear in sqlsrv/fastcacheitem.inc
Clear a cache item.

File

sqlsrv/fastcacheitem.inc, line 32
fastcacheitem Class.

Class

fastcacheitem
@file fastcacheitem Class.

Code

private function startsWith($haystack, $needle) {
  return $needle === "" || strpos($haystack, $needle) === 0;
}