You can check if a constant is defined with the code below:
<?php
if(defined('className::CONSTANT_NAME')){
//defined
}else{
//not defined
}
You can check if a constant is defined with the code below:
<?php
if(defined('className::CONSTANT_NAME')){
//defined
}else{
//not defined
}