<?php
class Human {
public $name;
public $old;
public function __construct($name, $old) {
$this->name = $name;
$this->old = $old;
}
}
$human1 = new Human('Masha', 98);
$human2 = new Human('Alexey', 150);
echo $human1->name; //Masha
echo $human2->name; //Alexey