class Student {
    public function \_\_construct($name) {
        $this->name = $name;
    }
}
$alex = new Student("Alex");

See: Classes

Comments