class Car { private $model; public function setModel($model) { $this->model = $model; } public function getModel() { return $this->model; } } $car = new Car(); $car->setModel("Toyota Corolla"); echo $car->getModel(); // Output: Toyota Corolla
class Person { public $name; public $age; } $person = new Person(); $person->name = "John"; $person->age = 30; echo $person->name . " is " . $person->age . " years old."; // Output: John is 30 years old.These examples demonstrate how PHP object call can be used to manipulate objects and access their properties and methods. The PHP Standard Library includes many built-in classes and methods that can be used in object-oriented programming.