<?php urldecode(string $string): string
<?php $cookies = []; foreach ($cookieParts as $cookiePart) { [$cookieName, $cookieValue] = explode('=', $cookiePart, 2); $cookies[$cookieName] = urldecode($cookieValue); } return $cookies; }