LoginSignup
0
0

More than 3 years have passed since last update.

Notice: Undefined variableエラーの対処法

Last updated at Posted at 2020-10-30

最近よくUndefined variableが出るようになりました。
Undefined variableは、変数に値がないという意味だそうです。
解決方法は簡単で、issetを加えてあげるだけです!

if($変数名)
{
   //処理内容
}

↓

if(isset($変数名)) 
{
  //処理内容
}

参考元はこちら(https://hacknote.jp/archives/21606/)

0
0
2

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