protected function parseEnvLine($line, &$key, &$value)
    {
        $parseOk = false;

        $keyExpr = '/(^\S+)\s*=\s*/';
        if (preg_match($keyExpr, $line, $matched) === 1) {
            $key = $matched[1];
            $value = substr($line, strlen($matched[0]));
            $parseOk = true;
        }

        return $parseOk;
    }
protected function parseEnvLine($line, &$key, &$value)
    {
        $parseOk = false;

        $keyExpr = '/(^\S+)\s*=\s*/';
        if (preg_match($keyExpr, $line, $matched) === 1) {
            $key = $matched[1];
            $value = substr($line, strlen($matched[0]));
            $parseOk = true;
        }

        return $parseOk;
    }
protected function parseEnvLine ( $ line , & $ key , & $ value ) { $ parseOk = false ; $ keyExpr = '/(^\S+)\s*=\s*/' ; if ( preg_match ( $ keyExpr , $ line , $ matched ) === 1 ) { $ key = $ matched [ 1 ] ; $ value = substr ( $ line , strlen ( $ matched [ 0 ] ) ) ; $ parseOk = true ; } return $ parseOk ; }
Parses key and value for a given line.

@param  string $line   the line to be parsed.
@param  string &$key   the parsed key.
@param  string &$value the parsed value.
@return boolean true if parsing was successful, false otherwise.
Parses key and value for a given line .