private function _removeRemarks($sql)
    {
        $sql = preg_replace('/\n{2,}/', "\n", preg_replace('/^[-].*$/m', "\n", $sql));
        $sql = preg_replace('/\n{2,}/', "\n", preg_replace('/^#.*$/m', "\n", $sql));
        return $sql;
    }
private function _removeRemarks($sql)
    {
        $sql = preg_replace('/\n{2,}/', "\n", preg_replace('/^[-].*$/m', "\n", $sql));
        $sql = preg_replace('/\n{2,}/', "\n", preg_replace('/^#.*$/m', "\n", $sql));
        return $sql;
    }
private function _removeRemarks ( $ sql ) { $ sql = preg_replace ( '/\n{2,}/' , "\n" , preg_replace ( '/^[-].*$/m' , "\n" , $ sql ) ) ; $ sql = preg_replace ( '/\n{2,}/' , "\n" , preg_replace ( '/^#.*$/m' , "\n" , $ sql ) ) ; return $ sql ; }
remove_remarks will strip the sql comment lines out of an uploaded sql file

@param string $sql The sql to process

@return string the SQL with the remarks removed
remove_remarks will strip the sql comment lines out of an uploaded sql file