<?php
class  Student {
    private $name = "Ali";
    private $id = 100;
    public function display()
    {
        echo "Name is :".$this->name;
        echo "<br">;
        echo "ID is : ".$this->id;
    }
}
$st = new Student();
$st->display();
?>