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
Is it possible to extend the execution time of a php script?
What is fetch array in php?
Does php need a closing tag?
What is the best practice for running mysql queries in php? Consider the risk of sql injection.
What is the use of get and post method in php?
Php program to generate fibonacci series?
Is php easier than javascript?
Tell me what does the initials of php stand for?
What is the role of php.ini file?
Is php session id unique?
How can I prevent sql-injection in php?
How can we define a variable accessible in functions of a php script?
What is a php session?
What is php and why we use it?
Tell me can the value of a constant change during the script's execution?