src/Helpers/Request/StringHelper.php
public function startsWith($string, $with, $caseSensitive = true, $encoding = null)
    {
        return $this->proxyWithCharset(__FUNCTION__, [$string, $with, $caseSensitive, $encoding]);
    }
public function startsWith($string, $with, $caseSensitive = true, $encoding = null)
    {
        return $this->proxyWithCharset(__FUNCTION__, [$string, $with, $caseSensitive, $encoding]);
    }
Check if given string starts with specified substring.
Binary and multibyte safe.

@param string $string Input string
@param string $with Part to search inside the $string
@param bool   $caseSensitive Case sensitive search. Default is true. When case sensitive is enabled, $with must exactly match the starting of the string in order to get a true value.
@param string $encoding String encoding
@return bool Returns true if first input starts with second input, false otherwise
@see \Reaction\Helpers\StringHelper::startsWith()