public static function implodeAndQuote($glue, $pieces)
    {
        foreach ($pieces as &$piece) {
            $piece = self::singleQuote($piece);
        }
        unset($piece);

        return implode($glue, $pieces);
    }