History for < Call a user function given by the first parameter in PHP >

Sort by: Date / Title /

  1. 7 months ago by spirit
    1. // Call a class method outside the class
    2. call_user_func(array($myclass, $mymethod), $args);
    3.  
    4. // Call a class method inside the class
    5. call_user_func(array($this, $mymethod), $args);
    6. //or
    7. $this->{$mymethod}($args);

 

This posteet has also been saved without any changes by jemini_fr