Menu Samaritan's Purse

CONSTANT

Returns the value of a constant

SYNTAX

constant ( string $name ) : mixed

PARAMETERS

name

The constant name.

RETURN

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

EXAMPLES

1

100
100

2

string(4) "some"
string(4) "test"

3

string(4) "some"
string(4) "test"

PHP