public function bt($s)
    {
        if (is_array($s)) {
            $out = array();
            foreach ($s as $ss) {
                $out[] = $this->bt($ss);
            }
            return $out;
        }

        if (!$this->bt
            || is_object($s)
            || $s === '*'
            || strpos($s, '.') !== false
            || strpos($s, '(') !== false
            || strpos($s, $this->bt) !== false
        ) {
            return $s;
        }

        return $this->bt.$s.$this->bt;
    }
public function bt($s)
    {
        if (is_array($s)) {
            $out = array();
            foreach ($s as $ss) {
                $out[] = $this->bt($ss);
            }
            return $out;
        }

        if (!$this->bt
            || is_object($s)
            || $s === '*'
            || strpos($s, '.') !== false
            || strpos($s, '(') !== false
            || strpos($s, $this->bt) !== false
        ) {
            return $s;
        }

        return $this->bt.$s.$this->bt;
    }
public function bt ( $ s ) { if ( is_array ( $ s ) ) { $ out = array ( ) ; foreach ( $ s as $ ss ) { $ out [ ] = $ this -> bt ( $ ss ) ; } return $ out ; } if ( ! $ this -> bt || is_object ( $ s ) || $ s === '*' || strpos ( $ s , '.' ) !== false || strpos ( $ s , '(' ) !== false || strpos ( $ s , $ this -> bt ) !== false ) { return $ s ; } return $ this -> bt . $ s . $ this -> bt ; }
Adds backtics around argument. This will allow you to use reserved
SQL words as table or field names such as "table".

@param mixed $s Any string or array of strings

@return string Quoted string
Adds backtics around argument . This will allow you to use reserved SQL words as table or field names such as table .