function fp_str_ends_with

6.x misc.inc fp_str_ends_with($haystack, $needle)
7.x misc.inc fp_str_ends_with($haystack, $needle)

File

includes/misc.inc, line 1801
This file contains misc functions for FlightPath

Code

function fp_str_ends_with($haystack, $needle) {
  return substr_compare($haystack, $needle, -strlen($needle)) === 0;
}