Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on New to PHP 5.4: Traits. Parent comment
This isn't exactly true. PHP objects can have dynamically assigned members without having magic methods defined. e.g.
$foo = new stdClass(); $foo->bar = "baz"; echo $foo->bar; //"baz"
There are no comments on this comment yet.
This isn't exactly true. PHP objects can have dynamically assigned members without having magic methods defined. e.g.
And now, with "closures", those members can be methods.