How to Define a Constant in PHP? Is $ symbol necessary?
Answer Posted / saurabh rastogi
define("CONSTANT", "Hello world.");
echo CONSTANT; // Outputs Hello world
| Is This Answer Correct ? | 46 Yes | 3 No |
Post New Answer View All Answers
Tell me is it possible to protect special characters in a query string?
How to read a file in binary mode?
what is CURL?
How do I run php?
How long does a php session last for?
What is memcache?
What is the difference between htmlentities() and htmlspecialchars()?
How can we upload a file in php?
Name some of the popular frameworks in php.
How to join multiple strings into a single string?
What is the purpose of the '.myd' file extension? What do thes file contain?
What is the difference between javascript and php?
Is server side a session?
How to read one character from a file?
Is string php function?