Function __global->cms_admirecookie

Definitions

sources/users.php

  • Get a cookie value.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$name string No No required parameter N/A N/A The name of the cookie
$default ?string No No Null N/A N/A The default value (null: just use the value null)

Returns

  • The value stored in the cookie (null: the default default)
  • Type: ?string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a cookie value.
 *
 * @param  string $name The name of the cookie
 * @param  ?string $default The default value (null: just use the value null)
 * @return ?string The value stored in the cookie (null: the default default)
 */

function cms_admirecookie(string $name, ?string $default = null) : ?string