diff --git a/include.misc.php b/include.misc.php index 9f91308..89ec47b 100644 --- a/include.misc.php +++ b/include.misc.php @@ -306,3 +306,8 @@ function generate_pagination($min, $max, $current, $around, $start, $end) } } +function ends_with($haystack, $needle) +{ + return (substr($haystack, -strlen($needle)) == $needle); +} +