PHP·98 questions

How do if/else conditions work?

Answer
if (condition) { code }.
elseif for additional conditions.
else for the rest.
Ternary: $x = $a ? $b : $c.
Null coalescing: $x = $a ?? 'default'.
Was this answer helpful?

More questions in this topic

Related questions from other topics