Menu
Riverview Church

STR_ENDS_WITH

Checks if a string ends with a given substring

SYNTAX

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

PARAMETERS

haystack

The string to search in.

needle

The substring to search for in the haystack.

RETURN

Returns TRUE if haystack ends with needle, FALSE otherwise.

EXAMPLES

1


2


3


INTERNAL

str_contains

str_starts_with

EXTERNAL

PHP