Cookie::format_for_header(): string

In this article

Format a cookie for a Cookie header

Description

This is used when sending cookies to a server.

Return

string Cookie formatted for Cookie header

Source

public function format_for_header() {
	return sprintf('%s=%s', $this->name, $this->value);
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.