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

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

        return implode($glue, $pieces);
    }
public static function implodeAndQuote ( $ glue , $ pieces ) { foreach ( $ pieces as & $ piece ) { $ piece = self :: singleQuote ( $ piece ) ; } unset ( $ piece ) ; return implode ( $ glue , $ pieces ) ; }
Add a single quote to all pieces, then implode with the given glue.

@param $glue
@param $pieces

@return string
Add a single quote to all pieces then implode with the given glue .