Junior PHP Developer Question:

Download Job Interview Questions and Answers PDF

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

Junior PHP Developer Interview Question
Junior PHP Developer Interview Question

Answer:

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

define (“ACONSTANT”, 123);

Download Junior PHP Developer Interview Questions And Answers PDF

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?