# endsWith
Returns true if the string ends with $substring, false otherwise. By
default, the comparison is case-sensitive, but can be made insensitive
by setting $caseSensitive to false.

## Description
`bool endsWith(string $substring, bool $caseSensitive = 1)`

### Parameters
* _string_ __$substring__  
The substring to look for

* _bool_ __$caseSensitive__  
Whether or not to enforce case-sensitivity


### Return Value
_bool_  
Whether or not $str ends with $substring