src/LdapTools/Ldif/LdifParser.php
protected function startsWith($value, $line = null)
    {
        if (is_null($line)) {
            $line = $this->currentLine();
        }

        return (substr($line, 0, strlen($value)) === $value);
    }
protected function startsWith($value, $line = null)
    {
        if (is_null($line)) {
            $line = $this->currentLine();
        }

        return (substr($line, 0, strlen($value)) === $value);
    }
protected function startsWith ( $ value , $ line = null ) { if ( is_null ( $ line ) ) { $ line = $ this -> currentLine ( ) ; } return ( substr ( $ line , 0 , strlen ( $ value ) ) === $ value ) ; }
Check if the current line starts with a specific value.

@param string $value
@param null|string $line
@return bool
Check if the current line starts with a specific value .