17 lines
394 B
Plaintext
17 lines
394 B
Plaintext
:sig
|
|
bool str_ends_with(String haystack, String needle)
|
|
|
|
:params
|
|
haystack : string to inspect
|
|
needle : suffix to compare against the end of `haystack`
|
|
return value : `true` when `haystack` ends with `needle`, otherwise `false`
|
|
|
|
:desc
|
|
Checks whether `haystack` ends with the given suffix.
|
|
|
|
:see
|
|
>string
|
|
|
|
:related
|
|
**PHP:** `str_ends_with()`
|
|
**JavaScript / Node.js:** `String.prototype.endsWith()` |