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 are the differences between php3 and php4 and php5? What is the current stable version of php? What advance thing in php7?
What is a closure in php?
Explain what is the static variable in function useful for?
What is difference between static and final in php?
What are the different loops in php?
Write down the code for save an uploaded file using php?
Which is better #define or enum?
Tell me what does the array operator '===' means?
Should I learn php before wordpress?
What is difference between isset and empty in php?
What is the difference between super () and this ()?
Do you know how can we check the value of a given variable is a number?
What is a php namespace?
What is different types of visibility?
Explain setcookie() function in php?