Sr. PHP Programmer Question:
How will you define a constant in PHP?

Answer:
To define a constant you have to use define() function and to retrieve the value of a constant, you have to simply specifying its name. Unlike with variables, you do not need to have a constant with a $.
Previous Question | Next Question |
What are the characteristics of PHP variables? | What is the purpose of _FILE_ constant? |