Undefined *** hoge...
PHP Notice: Use of undefined constant HOGE - assumed 'HOGE' in hoge.php on line XX
(つA`)<?php define(HOGE ,'hoge');
(゜∀゜)<?php define('HOGE' ,'hoge');
PHP Notice: Undefined variable: hoge
(つA`)<?php if($hoge != null) { echo('NOT null'); }
(゜∀゜)<?php $hoge = null; if($hoge != null) { echo('NOT null'); }
PHP Notice: Undefined index: bar
(つA`)<?php $hoge = array(); if($hoge['bar']) { echo('bar!'); }
(゜∀゜)<?php $hoge = array(); if(isset($hoge['bar'])) { echo('bar!'); }
無用なメッセージを吐かないようなコーディングをしたいものですね☆