Requests_Cookie_Jar::offsetSet

Advertisement

Summery Summery

Set the given item

Syntax Syntax

Requests_Cookie_Jar::offsetSet( string $key, string $value )

Parameters Parameters

$key

(string) (Required) Item name

$value

(string) (Required) Item value

Source Source

File: wp-includes/Requests/Cookie/Jar.php

	public function offsetSet($key, $value) {
		if ($key === null) {
			throw new Requests_Exception('Object is a dictionary, not a list', 'invalidset');
		}

		$this->cookies[$key] = $value;
	}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.