Function __global->constant

Definitions

sources_custom/phpstub.php

  • Returns the value of a constant.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

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 constant

Returns

  • The value of the constant
  • Type: mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Returns the value of a constant.
 *
 * @param  string $name The name of the constant
 * @return mixed The value of the constant
 */

function constant(string $name)