Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP How do you define a constant?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


brijesh
How do you define a constant?
1 Answer(s)      4 years and a month ago
Posted in : PHP


How do you define a constant in php?


Advertisement
View Answers

November 13, 2010 at 4:16 PM


Hi,

define("Name", "Deepak");

echo Name;  // Outputs Deepak


define("Name", "Ravi");

echo Name;  // Outputs Deepak

Means once you declair the define a constant value that will become every time it will not take new value or it will not redeclair.if you want change in value then declair the variables for that purpose.



Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com