Junior PHP Developer Question:
Download Job Interview Questions and Answers PDF
Tell me how is the ternary conditional operator used in PHP?
Answer:
It is composed of three expressions: a condition, and two operands describing what instruction should be performed when the specified condition is true or false as follows:
Expression_1 ? Expression_2 : Expression_3;
Expression_1 ? Expression_2 : Expression_3;
Download Junior PHP Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me is it possible to submit a form with a dedicated button? | Explain what does $_SERVER means? |