src/Http/Cookie/Jar.php
public static function toJar($cookies)
    {
        $result = [];
        foreach ($cookies as $name => $cookie) {
            if (!$cookie->expired()) {
                $result[] = static::_line($name, $cookie);
            }
        }
        return $result ? join("\n", $result) . "\n" : '';
    }
public static function toJar($cookies)
    {
        $result = [];
        foreach ($cookies as $name => $cookie) {
            if (!$cookie->expired()) {
                $result[] = static::_line($name, $cookie);
            }
        }
        return $result ? join("\n", $result) . "\n" : '';
    }
public static function toJar ( $ cookies ) { $ result = [ ] ; foreach ( $ cookies as $ name => $ cookie ) { if ( ! $ cookie -> expired ( ) ) { $ result [ ] = static :: _line ( $ name , $ cookie ) ; } } return $ result ? join ( "\n" , $ result ) . "\n" : '' ; }
Exports the cookies into a JAR string.

@param  object $cookies A `SetCookies` collection.
@return string
Exports the cookies into a JAR string .