SooXiaoTong@tg says to OwO
<?php $test['_string'] = ""; $test['_int'] = 0; $test['_float'] = 0.0; $test['_null'] = null; $test['_arr'] = array(); $test['_obj'] = new \stdClass(); foreach($test as $key => $value) { echo $key.": "; if($value == null) echo "is null\n"; else echo "is not null\n"; }die(); ?> will give you _string: is null _int: is null _float: is null _null: is null _arr: is null _obj: is not null