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
Do you know what does $globals means?
What is mvc in php?
How are php sessions stored?
Why do we use cookie?
How check variable is set or not in php?
Tell me how to strip whitespace (or other characters) from the beginning and end of a string?
Tell me which programming language does php resemble to?
What is the difference between session_unregister() and session_unset()?
What is instantiation?
Name some of the functions in php.
How to download file in php?
Tell me how the result set of mysql be handled in php?
What is local variable in php?
Does php support polymorphism?
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?