<?php class C { function __get($key) {return ($key === 'x') ? 'x' : '';} function __isset($key) {return TRUE;} } $c = new C; var_export(empty($c->x)); var_export(empty($c->other));
You have javascript disabled. You will not be able to edit any code.