str_ends_with()
function str_ends_with(string $haystack, string $needle): bool
Checks if a string ends with a given substring.
Parameters:
$haystack(string)$needle(string)
Returns: bool
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how str_ends_with is implemented in the compiler, see the internals page.