Please tell me how to make php terms? If possible, an example.

    1 answer 1

    In fact, in PHP there are far from a single conditional operator. One of these is the ternary operator:

    $speed = 55; echo ($speed < 60) ? "Скорость в пределах нормы" : "Превышение скорости !"; 

    Well, the three main operators of the logical condition:

     if else elseif 

    You can read about them here.