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 does == mean in php?
What is form validation in php?
What is basename php?
Can we embedded directly PHP code into XHTML document? State Whether True or False?
What is the functionality of the functions strstr() and stristr()?
What is cookies php?
How to move uploaded files to permanent directory?
Explain how can php and javascript interact?
What is php form validation?
Is php object oriented?
When are you supposed to use endif to end the conditional statement?
What does the unset() function means?
What are include() and require() functions?
What are the steps involved to run php?
Does php have a future?