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
What is printf in php?
Is php better than python?
Tell me what type of operation is needed when passing values through a form or an url?
What is mysql_real_escape_string used for?
Do you know what is the use of the function 'imagetypes()'?
What is in php 7?
What is php resource type?
What is php dependency injection?
When to use single quotes, double quotes, and backticks?
What is form submission?
How to make a class in php?
How can we know the total number of elements of Array?
Why php was called as personal home page?
What is warning – “cannot modify header information – headers already sent”?
Tell me how can we check the value of a given variable is alphanumeric?