<?php function GetValue($v) { return $v; } class foo { public $bar; } $x = new foo(); var_dump(GetValue($x->bar->baz )); // Notice: Trying to get property of non-object ?>
You have javascript disabled. You will not be able to edit any code.