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 ci in php?
What is php pathinfo?
How does php strcmp work?
How can we pass the variable through the navigation between the pages?
Can I use node js with php?
How does csrf attack work?
Why do we use namespace in php?
How do you check is php not empty?
Is age interval or ordinal?
Explain briefly about a search-friendly site looks like?
What is the difference between implode() and explode() in php?
Is age nominal or ordinal?
How to access a global variable inside a function?
Explain Type juggling?
What is difference between echo and print_r in php?