# getValue

Learn how to read the cookie value.

This method provides the value of the cookie.

## Signature

This method has the following signature:

```php
public function getValue(): string
```

This method returns the value of the cookie.

## Example

Here is a basic example of how to use this method:

```php
<?php
use Croct\Plug\CookieStorage;

$cookies = CookieStorage::fromGlobals()->getResponseCookies();
$value = $cookies[0]->getValue();
```
