<?php class Point { public function __construct( public float $x, public float $y = 0.0, public float $z = 0.0, ) {} } foreach ((new ReflectionClass(Point::class))->getProperties() as $property) { var_dump($property->name); }
You have javascript disabled. You will not be able to edit any code.