PHP - Classes and Objects
What will be the output of the following PHP code?
class Car {
public $color;
public function __construct($color) {
$this->color = $color;
}
}
$myCar = new Car('red');
echo $myCar->color;