How to Define a Constant in PHP? Is $ symbol necessary?
Answer Posted / vaneet badhan
define(my,60);
echo my;
output will be 60.
define(my,vaneet);
echo my;
output will be vaneet
Is This Answer Correct ? | 7 Yes | 12 No |
Post New Answer View All Answers
What does a dependant variable mean?
Can you explain, when to use if-else if-else over switch statements?
What is the best way to change the key without changing the value of a php array element?
Why does php start with variables?
What are the Formatting and Printing Strings available in PHP?
How do you count numbers in php?
What does php exit do?
What is use of in_array() function in php?
what is benefit of magento?
What is config file in php?
What is the maximum size of a table in mysql?
What are advantages of .htaccess?
Explain what is the difference between session and cookie?
Explain what is meant by pear in php?
How to convert a character to an ascii value?