Home > PHP > Function > Misc. > constant()

constant()

constant - Returns the value of a constant

Syntax

mixed constant (string $name)

Arguments

  • name - The constant name.

Description

Return the value of the constant indicated by name.

Version

PHP 4.0.4, 5

Return value

Returns the value of the constant, or NULL if the constant is not defined.