final class in PHP

A class declared as final can not be extended in future. Creator of class declare that class as final if he want that class should not be inherited due to some security or other reasons. A final class can contain final as well as non final methods. But there is no use of final methods in class when class is itself declared as final because inheritance is not possible.
```
<?php
  
final class Base {
    final function printdata() {
        echo "final base class final method";
    }
}
  
$obj = new Base;
$obj->printdata();

//class Derived extends Base {} 
?>
```