define

PHP 4, PHP 5, PHP 7, PHP 8
define - Defines a named constant
Manual
Code Examples

Example #1 Constants with Reserved Names

Result: bool(false) bool(true) string(4) "test" int(5)
PHP Version:

Example #2 Defining Constants

PHP Version:


Function define:

Miscellaneous Functions Functions

Most used PHP functions