Organizational Research By

Surprising Reserch Topic

How do you define a constant using php?



asked Sep 13, 2013 in PHP by ashish singh
edited Sep 12, 2013
0 votes
22 views



Related Hot Questions

1 Answer

0 votes

In this section, I will explain how to define a constant in PHP.


define("Test","Hello Rajesh Shewale! How are you today?");


The constant() function returns the value of a constant. 
Syntax:

constant(constant);
 
Example:
 
 


//define a constant
define("Test","Hello Rajesh Shewale! How are you today?"); 


echo constant("Test");
?>

answered Sep 13, 2013 by ashish singh
edited Sep 12, 2013

...