Answers for "php hook function"

PHP
0

php hook function

class Vehicle {
       function __construct() {
              $this->hookFunction();
       }

       function hookFunction() {
              //
       }
 }

 class Car extends Vehicle {

 } 

 Class Toyota extends Car {

 }

 new Toyota(); // will you hook function
 // this exclude static call to member functions, or other inline functions.
Posted by: Guest on August-03-2021

Browse Popular Code Answers by Language