src/ConfigFile.php
private function getFromConst($line)
    {
        $eq_pos = strpos($line, '=');
        $semicolon_pos = strrpos($line, ';');

        $constant_name = trim(substr($line, 6, $eq_pos - 6));
        $value = trim(substr($line, $eq_pos + 1, $semicolon_pos - $eq_pos - 1));

        return [$constant_name, $this->getNativeValueFromDefinition($value)];
    }
private function getFromConst($line)
    {
        $eq_pos = strpos($line, '=');
        $semicolon_pos = strrpos($line, ';');

        $constant_name = trim(substr($line, 6, $eq_pos - 6));
        $value = trim(substr($line, $eq_pos + 1, $semicolon_pos - $eq_pos - 1));

        return [$constant_name, $this->getNativeValueFromDefinition($value)];
    }
private function getFromConst ( $ line ) { $ eq_pos = strpos ( $ line , '=' ) ; $ semicolon_pos = strrpos ( $ line , ';' ) ; $ constant_name = trim ( substr ( $ line , 6 , $ eq_pos - 6 ) ) ; $ value = trim ( substr ( $ line , $ eq_pos + 1 , $ semicolon_pos - $ eq_pos - 1 ) ) ; return [ $ constant_name , $ this -> getNativeValueFromDefinition ( $ value ) ] ; }
Return single option from const DB_XYZ defition line

@param  string $line
@return string
Return single option from const DB_XYZ defition line