LoginSignup
0
0

More than 1 year has passed since last update.

変数に値が入っているか判定 isset

Posted at

用途

変数に値が入っているかを判定したい時に使う

使用方法

php
if (isset(変数名)) {
  // 変数がある場合の処理;
} else {
  // 変数がない場合の処理;
}

注意
「変数の値がある場合、且つNULLでない場合」に TRUE を返す。
「NULL」または、「値がない場合」は FALSE を返す。

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