PHP and undefined variables strategy

前端 未结 12 1097
名媛妹妹
名媛妹妹 2021-01-17 09:49

I am a C++ programmer starting with PHP. I find that I lose most of the debugging time (and my selfesteem!) due to undefined variables. From what I know, the only way to dea

12条回答
  •  南笙
    南笙 (楼主)
    2021-01-17 10:24

    If you want to hide the error of an undefined variable, then use @. Example: @$var

提交回复
热议问题