How to Define a Constant in PHP? Is $ symbol necessary?
Answer Posted / mahesh
A Dollar($) Symbol is not necessary for displaying a
constant6 variable,
ex:
define("PAGE_SIZE","100");
echo PAGE_SIZE;
or
<?=PAGE_SIZE?>
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What is stdclass in php?
What is mod_php?
Is empty function c++?
Where sessions stored in PHP?
What is the use of mysqli_real_escape_string() function?
What is faster?
What does the scope of variables mean?
Which function is used in php to count the total number of rows returned by any query?
How to set a page as a home page in a php based site?
Does mysql need php?
What is the role of the .htaccess file in php?
What is php destruct?
How is the comparison of objects done in php?
What is purpose of @ in Php?
Difference between array_combine and array_merge?