protected function quoteSpecialName($name)
    {
        //If user already back ticked, return the original string
        if ($name[0] == '`' && $name[mb_strlen($name) - 1] == '`') return $name;

        //Back tick string
        $name = '`' . $name . '`';

        //Check if its a qualified table name, if so escape around the dot as well
        $name = str_replace('.', '`.`', $name);

        return $name;
    }
protected function quoteSpecialName($name)
    {
        //If user already back ticked, return the original string
        if ($name[0] == '`' && $name[mb_strlen($name) - 1] == '`') return $name;

        //Back tick string
        $name = '`' . $name . '`';

        //Check if its a qualified table name, if so escape around the dot as well
        $name = str_replace('.', '`.`', $name);

        return $name;
    }
protected function quoteSpecialName ( $ name ) { //If user already back ticked, return the original string if ( $ name [ 0 ] == '`' && $ name [ mb_strlen ( $ name ) - 1 ] == '`' ) return $ name ; //Back tick string $ name = '`' . $ name . '`' ; //Check if its a qualified table name, if so escape around the dot as well $ name = str_replace ( '.' , '`.`' , $ name ) ; return $ name ; }
MySQL style special naming backticks quotes

@param string $name
@return string
MySQL style special naming backticks quotes