Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 493 Bytes

Strings.md

File metadata and controls

24 lines (18 loc) · 493 Bytes

\GeekLab\ToolBox\Strings

Basic usage:

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

Description:

Does a string begin with $needle?

Usage:

if(\GeekLab\ToolBox\Strings::beginWith('This is my haystack', 'This')))
{
    //...
}

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

Description:

Does a string end with $needle?

Usage:

if(\GeekLab\ToolBox\Strings::endsWith('This is my haystack', 'stack')))
{
    //...
}