You are here

function feeds_tamper_conditional_ends_with in Feeds Tamper Conditional 7

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

File

plugins/feeds_tamper_conditional.inc, line 258

Code

function feeds_tamper_conditional_ends_with($haystack, $needle) {

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