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
Does php support multiple inheritance?
What is array filter in php?
Is null check in php?
Why framework is used in php?
How to concatenate two strings together in php?
What is difference between isset and empty in php?
What are the types of variables in php?
What is a closure in php?
What is rtrim php?
What is strlen function in php?
How can I embed a java program in php file and what changes have to be done in php.ini file?
How can we access the data sent through the url with the get method?
where do we use htaccess?
Declare a new variable in php equal to the number 3;
How are cookies created?