Heim  >  Fragen und Antworten  >  Hauptteil

ternärer Operator

<?php

$arry=[ ]

?>

NimmbNimmb2384 Tage vor1398

Antworte allen(1)Ich werde antworten

  • sky

    sky2018-03-13 18:09:24

    <?php

    $a = TRUE;


    echo $a?'1':'2'; // 输出 1

    ?>


    Antwort
    0
  • StornierenAntwort