LoginSignup
0
0

More than 1 year has passed since last update.

PHPの三項演算子

Last updated at Posted at 2022-02-09

#三項演算子とは

条件式 ? 式1 : 式2

条件式を評価し、TRUEであれば式1をFALSEであれば式2を返す。
演算子なので、IF文とは違い処理を記述するのではなく式を記述する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0