Junior PHP Developer Question:

Download Job Interview Questions and Answers PDF

Tell me how is the ternary conditional operator used in PHP?

Junior PHP Developer Interview Question
Junior PHP Developer Interview Question

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;

Download Junior PHP Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me is it possible to submit a form with a dedicated button?Explain what does $_SERVER means?