Articles → PHP → Constants in PHP

Constants in PHP


















Software requirement









Technical knowledge





What do you mean by constant?





Rules for making constant





Syntax




define(constant_name, constant_value,is_case_insensitive);









Example


<?php
define("PIE", "3.14", true);
echo pie
?>




<?php
define("PIE", "3.14");
echo pie
?>





Posted By  -  Karan Gupta
 
Posted On  -  Monday, September 08, 2014

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250