public static function parseCookieParts(array $cookieParts)
    {
        $cookie = '';
        foreach ($cookieParts as $key => $val) {
            $cookie .= $key.'='.rawurlencode($val).';';
        }
        $cookie = trim($cookie, ';');

        return $cookie;
    }
public static function parseCookieParts(array $cookieParts)
    {
        $cookie = '';
        foreach ($cookieParts as $key => $val) {
            $cookie .= $key.'='.rawurlencode($val).';';
        }
        $cookie = trim($cookie, ';');

        return $cookie;
    }
public static function parseCookieParts ( array $ cookieParts ) { $ cookie = '' ; foreach ( $ cookieParts as $ key => $ val ) { $ cookie .= $ key . '=' . rawurlencode ( $ val ) . ';' ; } $ cookie = trim ( $ cookie , ';' ) ; return $ cookie ; }
Takes an array of cookie parts and returns an urlencoded string ready to send

@param array $cookieParts
@return string
Takes an array of cookie parts and returns an urlencoded string ready to send