Does a string begin with $needle?
if(\GeekLab\ToolBox\Strings::beginWith('This is my haystack', 'This')))
{
//...
}
Does a string end with $needle?
if(\GeekLab\ToolBox\Strings::endsWith('This is my haystack', 'stack')))
{
//...
}
Does a string begin with $needle?
if(\GeekLab\ToolBox\Strings::beginWith('This is my haystack', 'This')))
{
//...
}
Does a string end with $needle?
if(\GeekLab\ToolBox\Strings::endsWith('This is my haystack', 'stack')))
{
//...
}