public function startsWith($startsWith, $caseSensitive = false)
    {
        if (! $caseSensitive) {
            return strtolower($this->first()) === strtolower($startsWith);
        }

        return $this->first() === $startsWith;
    }
public function startsWith($startsWith, $caseSensitive = false)
    {
        if (! $caseSensitive) {
            return strtolower($this->first()) === strtolower($startsWith);
        }

        return $this->first() === $startsWith;
    }
public function startsWith ( $ startsWith , $ caseSensitive = false ) { if ( ! $ caseSensitive ) { return strtolower ( $ this -> first ( ) ) === strtolower ( $ startsWith ) ; } return $ this -> first ( ) === $ startsWith ; }
Determine if the identifier starts with the specified part string

@param string $startsWith    The string that the first part should equal
@param bool   $caseSensitive Perform a case-sensitive comparison.
Defaults to FALSE

@return bool True if the first identifier part equals the specified
string
Determine if the identifier starts with the specified part string