str_ends_with (listed) 12.11.2018 17:48:02 (4 lines) [Edit] [Raw] [View]

<?php function str_ends_with($haystack, $needle){ return substr_compare($haystack, $needle, -strlen($needle)) === 0; }