Skip to content
Chung Leong edited this page Jan 10, 2022 · 6 revisions

define — Defines a named constant

define( string $name , number $value )

define() defines a named constant at compile-time. When used in a conditional block, the conditional expression should be resolvable at compile-time as well. Otherwise the constant will always be defined when qb_compile() is called, even if the block is in fact unreachable at runtime.

Parameters

name - The name of the constant.

value - The value of the constant; only scalar and null values are allowed.

Return Value

true on success or false on failure.

Version

1.0 and above.

Clone this wiki locally