Created
June 29, 2011 16:35
-
-
Save aknosis/1054257 to your computer and use it in GitHub Desktop.
Check if a class constant exists in PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(defined('className::CONSTANT_NAME')){ | |
//defined | |
}else{ | |
//not defined | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not working with array values