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 is a controller php?
Tell me what kind of things have you done on the social side?
Are php sessions cookies?
Please explain is it possible to use com component in php?
Is laravel frontend or backend?
What does the scope of variables mean?
What is the importance of "action" attribute in a html form?
What are the common uses of php?
How long is a php session valid?
What is the difference between get and post in php?
What are the environmental variables?
Why ide is recommended for use while programming with php?
Can you pass an array into a function?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what is the problem?
What's the difference between __sleep and __wakeup?