How to Define a Constant in PHP? Is $ symbol necessary?
Answer Posted / saurabh rastogi
define("CONSTANT", "Hello world.");
echo CONSTANT; // Outputs Hello world
Is This Answer Correct ? | 46 Yes | 3 No |
Post New Answer View All Answers
What is the Pipe Symbol represented?
What does $_cookie means?
What is use of isset function in php?
What is the role of the .htaccess file in php?
What is chrome logger?
How do I install php and apache on windows 10?
Explain scalar type declarations in php7?
How to get ip address of a server in php?
Is php an api?
What is the difference between Session and Cookie?
What is new static in php?
What is htaccess? Why do we use this and where?
What is htaccess in php?
What is strlen function in php?
Tell me in php, objects are they passed by value or by reference?