Function: get_cookie()

function get_cookie(string $name): string;

Gets the cookie value by name.

Parameters

Name Pass type Value type Default value Description
$name by value string

Name of the cookie.

Returns

string

Returns the cookie value of empty string if the cookie is not set.

Authors

Oleg Schildt

Package

Source code