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
Explain me what are the 3 scope levels available in php and how would you define them?
List data types in PHP?
What should we do to be able to export data into an excel file?
Who is the father or inventor of php?
Tell me what kind of things have you done on the social side?
What is a php web application?
How to insert a line break in php string?
How can we upload a file in php?
How do you parse and process html/xml in php?
Is age nominal or ordinal?
What are the different tables(engine) present in mysql, which one is default?
What is the function in PHP do not return a timestamp?
How can we determine whether a php variable is an instantiated object of a certain class?
Is age a variable in research?
Which are the best start and end tags to use?