Member
cristobal
How is a constant defined in a PHP script?
bailey_conroy
Defining a Constant in PHP
1 2
<?php define('CONSTANT_NAME',value);
dion.waelchi
@cristobal You can also define constant in PHP like this:
1 2 3 4
<?php const TEST = 'test'; // and then call it like this echo self::TEST;