getValue
Learn how to read the cookie value.
This method provides the value of the cookie.
Signature
This method has the following signature:
public function getValue(): stringThis method returns the value of the cookie.
Example
Here is a basic example of how to use this method:
<?phpuse Croct\Plug\CookieStorage;
$cookies = CookieStorage::fromGlobals()->getResponseCookies();$value = $cookies[0]->getValue();