Requests_Cookie_Jar::getIterator() WordPress Method

The Requests_Cookie_Jar::getIterator() method is a simple way to iterate over all the cookies in a cookie jar. The method returns an iterator which can be used to fetch all the cookies in the jar.

Requests_Cookie_Jar::getIterator() #

Get an iterator for the data

Contents


Return

(ArrayIterator)


Top ↑

Source

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

	public function getIterator() {
		return new ArrayIterator($this->cookies);
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.