Menu Samaritan's Purse

DEFINED

Checks whether a given named constant exists

SYNTAX

defined ( string $name ) : bool

PARAMETERS

name

The constant name.

RETURN

Returns TRUE if the named constant given by name has been defined, FALSE otherwise.

EXAMPLES

1

Hello World!

2

not defined

PHP