8 ms·
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 = inste
by asdasdasdasdwd 7y 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 https://wiki.php.net/rfc/object-initializer