Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #hook #function
ADD COMMENT
Topic
Name
5+6 =