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
Is it easy to learn php?
What is difference Between PHP 5 and 7?
what does this symbol mean in php?
Write a program to find no of days between two dates in php?
When do you use define() and when do you use const. What are the main differences between those two?
Explain which cryptographic extension provide generation and verification of digital signatures?
How to access standard error stream in PHP?
What is a php array?
How many types of arrays are there in php?
Where can I find php ini file?
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
What is polymorphism in oop php?
Explain php explode() function.
Is php difficult to learn?
What is the name of scripting engine in php?