Cookie
class Cookie (View source)
Methods
static bool
has(string $key, bool $strict = false)
Check for existence of a key in the session collection
static bool
isEmpty()
Check if a collection is empty.
static mixed
get(string $key, mixed $default = null)
Allows you to retrieve a value or collection of cookie value.
static array
all()
Return all values of COOKIE
static bool
set(int|string $key, mixed $data, int $expiration = 3600)
Add a value to the cookie table.
static string|bool|null
remove(string $key)
Delete an entry in the table
Details
static bool
has(string $key, bool $strict = false)
Check for existence of a key in the session collection
static bool
isEmpty()
Check if a collection is empty.
static mixed
get(string $key, mixed $default = null)
Allows you to retrieve a value or collection of cookie value.
static array
all()
Return all values of COOKIE
static bool
set(int|string $key, mixed $data, int $expiration = 3600)
Add a value to the cookie table.
static string|bool|null
remove(string $key)
Delete an entry in the table