<?php // your code goes here $a = new stdClass(); $b = array(); var_dump(empty($a), empty($b), count($a));
Standard input is empty
bool(false) bool(true) int(1)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!