<?php strcasecmp(string $string1, string $string2): int
<?php public function endsWith($haystack, $needle) { return strcasecmp(substr($haystack, strlen($haystack) - strlen($needle)), $needle) === 0; }