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

Set the given item


Description Description


Parameters Parameters

$key

(string) (Required) Item name

$value

(string) (Required) Item value


Top ↑

Source Source

File: wp-includes/Requests/Utility/CaseInsensitiveDictionary.php

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

		$key = strtolower($key);
		$this->data[$key] = $value;
	}


Top ↑

User Contributed Notes User Contributed Notes

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