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 can I find php ini file?
Which is true about the singleton design pattern?
Which is better python or php?
Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?
Explain what is the difference between $var and $$var?
Where sessions stored in PHP?
How can I increase my website session?
How can you get web browser’s details using PHP?
Which operator is used to combine string values in php?
Can you pass an array into a function?
Explain the difference between php4 and php5.
What are the advantages of stored procedures, triggers, indexes in php?
How to create a session? How to set a value in session?
What is the apache?
Is age an interval or ratio?