We can define a class with keyword "class" followed by the name of the class.

 

Example :

class phpClass {
    public function test() {
       echo 'Test';
    }
}

BY Best Interview Question ON 06 Jul 2020