Run ❯
Get your
own PHP
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
color = $color; $this->model = $model; } public function message() { return "My car is a " . $this->color . " " . $this->model . "!"; } } $myCar = new Car("red", "Volvo"); var_dump($myCar); ?>
object(Car)#1 (2) { ["color"]=> string(3) "red" ["model"]=> string(5) "Volvo" }