<?php $foo = "";$bar = array();$baz = "0"; var_dump(empty($foo));var_dump(empty($bar));var_dump(empty($baz));
Standard input is empty
bool(true) bool(true) bool(true)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!