<?php$val1 = NULL;$val2 = 0; var_dump(is_null($val1)); //truevar_dump(is_null($val2)); //false var_dump($val1 === 0); //falsevar_dump($val2 === 0); //true
Standard input is empty
bool(true) bool(false) bool(false) bool(true)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!