Hacker News new | ask | show | jobs
by asdasdasdasdwd 2393 days ago
I think there is an rfc for object initialization similar to C#:

    $city = new City {name: 'Berlin, population: 374800};
Edit: found it (and it uses = instead of :) https://wiki.php.net/rfc/object-initializer