str_ends_with


str_ends_with ( $haystack, $needle )

Parameters:
  • (string) haystack The string to search in.
  • (string) needle The substring to search for in the `$haystack`.
Returns:
  • (bool) True if `$haystack` ends with `$needle`, otherwise false.
Defined at:

Description

Polyfill for `str_ends_with()` function added in PHP 8.0.Performs a case-sensitive check indicating if the haystack ends with needle.

Related Functions

str_starts_with, rest_get_date_with_gmt, wp_render_widget, kses_init, random_int

Top Google Results

User discussions

wpseek mobile