Requests_Cookie_Jar::offsetGet

Advertisement

Summery Summery

Get the value for the item

Syntax Syntax

Requests_Cookie_Jar::offsetGet( string $key )

Parameters Parameters

$key

(string) (Required) Item key

Return Return

(string) Item value

Source Source

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

	public function offsetGet($key) {
		if (!isset($this->cookies[$key])) {
			return null;
		}

		return $this->cookies[$key];
	}

Advertisement

Advertisement

Leave a Reply

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