以下の内容はhttps://iww.hateblo.jp/entry/20170303/nullより取得しました。


isset($a)はNULLのときも偽になる

変数がセットされていること、そして NULL でないことを検査する

PHP: isset - Manual
<?
function hoge($a){
	var_dump($a);
	print( isset($a) ? "not NULL\n" : "this is NULL!\n" );
}

$b = [1=>"A"];
hoge($b[1]); // 存在する添え字

print("----\n");
hoge($b[0]); // 存在しない添え字

print("----\n");
hoge(NULL);  // 正真正銘のNULL
string(1) "A"
not NULL
----
NULL
this is NULL!
----
NULL
this is NULL!



以上の内容はhttps://iww.hateblo.jp/entry/20170303/nullより取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14