You are here

function feeds_tamper_conditional_begins_with in Feeds Tamper Conditional 7

1 call to feeds_tamper_conditional_begins_with()
feeds_tamper_conditional_callback in plugins/feeds_tamper_conditional.inc
Callback for plugin.

File

plugins/feeds_tamper_conditional.inc, line 250

Code

function feeds_tamper_conditional_begins_with($haystack, $needle) {

  // Enforce case insensitive check.
  $haystack = strtolower($haystack);
  $needle = strtolower($needle);
  return substr($haystack, 0, strlen($needle)) === $needle;
}