Check defined constants - PHP Code Snippet

<?php 

define('DISALLOW_FILE_EDIT', true);

echo "\n DISALLOW_FILE_EDIT is: " . constant('DISALLOW_FILE_EDIT') . "\n";

//$constants = get_defined_constants();
//var_dump($constants); // pretty large list
?>

Key words: define defined constant constants

Last modified
2021-10-01