Function __global->defined
Definitions
sources_custom/phpstub.php
- Checks whether a given named constant exists.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $name | string | No | No | required parameter | N/A | N/A | The identifier of a constant |
Returns
- Whether the constant exists
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Checks whether a given named constant exists.
*
* @param string $name The identifier of a constant
* @return boolean Whether the constant exists
*/
function defined(string $name) : bool
* Checks whether a given named constant exists.
*
* @param string $name The identifier of a constant
* @return boolean Whether the constant exists
*/
function defined(string $name) : bool
