StringUtil::ends_with( string $string, string $ends_with, bool $case_sensitive = true )

Checks to see whether or not a string ends with another.


Description Description


Parameters Parameters

$string

(Required) The string we want to check.

$ends_with

(Required) The string we're looking for at the end of $string.

$case_sensitive

(Optional) Indicates whether the comparison should be case-sensitive.

Default value: true


Top ↑

Return Return

(bool) True if the $string ends with $ends_with, false otherwise.


Top ↑

Source Source

File: src/Utilities/StringUtil.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.