Title: Requests_Cookie::__toString
Published: August 16, 2016
Last modified: November 2, 2022

---

# Requests_Cookie::__toString()

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/requests_cookie/__tostring/?output_format=md#description)
 * [Source](https://developer.wordpress.org/reference/classes/requests_cookie/__tostring/?output_format=md#source)

[ Back to top](https://developer.wordpress.org/reference/classes/requests_cookie/__tostring/?output_format=md#wp--skip-link--target)

Get the cookie value

## 󠀁[Description](https://developer.wordpress.org/reference/classes/requests_cookie/__tostring/?output_format=md#description)󠁿

Attributes and other data can be accessed via methods.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/requests_cookie/__tostring/?output_format=md#source)󠁿

[View all references](https://developer.wordpress.org/reference/files/wp-includes/requests/cookie.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/Requests/Cookie.php#L373)

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Frequests_cookie%2F__tostring%2F)
before being able to contribute a note or feedback.