Home
/
Snippets
/ PHP: define a constant
»
Home
»
Articles
»
Resources
»
Snippets
PHP: define a constant
<?php define('MY_CONSTANT', 'some value'); echo MY_CONSTANT; // prints 'some value'