Source Code : Use this keyword to reference interal properties

PHP Is Open Source Programming Language You Can Download and use It, You required xampp server and wamp server . You download From xampp server from https://www.apachefriends.org/download.html. Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://php.net/. Click Here or search from google with Libraries Name you get jar file related it and also http://php.net/ is a official site

Use this keyword to reference interal properties

<?php
class Employee {
    public $numPages;
    public $stayYear;
    public $title;
    public $lastName;
    public $firstName;
    public $price;
    
    function __construct(   $title, $firstName, 
                            $mainName, $price, 
                            $numPages=0, $stayYear=0 ) { 
        $this->title             = $title;
        $this->firstName = $firstName;
        $this->lastName  = $mainName;
        $this->price     = $price;
        $this->numPages  = $numPages;
        $this->stayYear = $stayYear;
    }
    
    function getNumberOfPages() {
        return $this->numPages;
    }

    function getStayLength() {
        return $this->stayYear;
    }

    function getFullName() {
        return "{$this->firstName}" .  "{$this->lastName}";
    }
}

$product1 = new Employee("A", "A1", "A2", 5.99, 300 );
$product2 = new Employee("B", "B1", "B2", 10.99, null, 60.33 );

print "author:          ".$product1->getFullName()."
";
print "number of pages: ".$product1->getNumberOfPages()."
";
print "artist:          ".$product2->getFullName()."
";
print "play length:     ".$product2->getStayLength()."
";

?>


           
       

Thank with us