<?php
// PHP script demonstrating OOP principles
class Car {
public $brand;
public $model;
public function __construct($brand, $model) {
$this->brand = $brand;
$this->model = $model;
}
public function displayInfo() {
return "Brand: {$this->brand}, Model: {$this->model}";
}
}
$car = new Car("Toyota", "Camry");
echo $car->displayInfo();
?>