Define statement : Define Constant : Language Basics PHP Source Code


PHP Source Code » Language Basics » Define Constant »

 

Define statement



<?php
   define("PI"3.141592);
print "The value of pi is ".PI.".<br />";
$pi2 = * PI;
print "Pi doubled equals $pi2.";

?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Define Constant