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);
define (“ACONSTANT”, 123);
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? |