define()
function define(string $constant_name, mixed $value): bool
Defines a named constant at runtime.
Parameters:
$constant_name(string)$value(mixed)
Returns: bool
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how define is implemented in the compiler, see the internals page.