PHP/Language Basics/Define Constant
Define statement
<source lang="html4strict">
<?php
define("PI", 3.141592);
print "The value of pi is ".PI.".
";
$pi2 = 2 * PI;
print "Pi doubled equals $pi2.";
?>
</source>
<source lang="html4strict">
<?php
define("PI", 3.141592);
print "The value of pi is ".PI.".
";
$pi2 = 2 * PI;
print "Pi doubled equals $pi2.";
?>
</source>