ALIAS

ends()

ShortPHP reference for str_ends_with().

Signature

str_ends_with(string $haystack, string $needle): bool

Example

ends(...);

PHP equivalent

str_ends_with() is the canonical PHP function. ShortPHP provides ends() as the convenience alias.

Extension: Core

Official PHP manual ↗

Reference navigation

Previous: has()

Next: rep()

Back to reference