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 ltrim?
How arrays are used in php?
Tell me how do you execute a php script from the command line?
What is the difference between rest and soap?
How can we determine whether a php variable is an instantiated object of a certain class?
Is not null mysql?
Is array empty php?
How to convert strings in hex format?
What is the use of callback in php?
What happens if an expected input field was not submitted?
In php, how to redirect from one page to another page?
Which PHP function would you use to send an email?
What is string and its function?
How is it possible to return a value from a function?
What are the new features in php 7?