<?php class C { function foo() { // return new DOMElement("a"); return null; } } $c = new C; var_dump($c->foo()->hasAttribute("href") ?? "foobar");
You have javascript disabled. You will not be able to edit any code.