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
Where sessions stored in PHP?
How do you remove whitespace from the beginning and end of a $string variable?
Write a hello world program using variable?
What u mean by query?
How to convert numbers to strings in php?
What are php parameters?
What is an array in php?
What is 'float' property in css?
Which escape sequences can be used in single quoted strings in php?
What is action hooks and filter hooks?
I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable
Php being an open source is there any support available to it?
How many types of errors in php?
What is the use of "echo" in php?
What is advanced php programming?