Sr. PHP Programmer Question: Download Senior PHP Programmer PDF

How will you define a constant in PHP?

Tweet Share WhatsApp

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 $.

Download Senior PHP Programmer PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
What are the characteristics of PHP variables?What is the purpose of _FILE_ constant?