PHP program to check a constant is defined or not
<?php
//PHP program to check a constant is defined or not.
define(PI,3.14);
if(defined("PI")==true)
print("Constant is defined");
else
print("Constant is not defined");
?>
Output
Constant is defined
