Junior PHP Developer Question:

Tell me how a constant is defined in a PHP script?

Answer:

The define() directive lets us defining a constant as follows:

define (“ACONSTANT”, 123);

Read All 161 Junior PHP Developer Questions
Previous QuestionNext Question
Tell me what does the PHP error ‘Parse error in PHP – unexpected T_variable at line x’ means?Explain me differences between GET and POST methods?