Junior PHP Developer Question:
Download Job Interview Questions and Answers PDF
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);
define (“ACONSTANT”, 123);
Download Junior PHP Developer Interview Questions And Answers
PDF
Previous Question | Next 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? |