WordPress at a glance
function is not described

Requests_Cookie::format_for_set_cookie() public WP 1.0

Format a cookie for a Set-Cookie header

This is used when sending cookies to clients. This isn't really applicable to client-side usage, but might be handy for debugging.

It's a method of the class: Requests_Cookie{}

No Hooks.

Return

String. Cookie formatted for Set-Cookie header

Usage

$Requests_Cookie = new Requests_Cookie();
$Requests_Cookie->format_for_set_cookie();

Code of Requests_Cookie::format_for_set_cookie() WP 5.5.1

<?php
public function format_for_set_cookie() {
	$header_value = $this->format_for_header();
	if (!empty($this->attributes)) {
		$parts = array();
		foreach ($this->attributes as $key => $value) {
			// Ignore non-associative attributes
			if (is_numeric($key)) {
				$parts[] = $value;
			}
			else {
				$parts[] = sprintf('%s=%s', $key, $value);
			}
		}

		$header_value .= '; ' . implode('; ', $parts);
	}
	return $header_value;
}