PHP function forward_static_call_array()

Availability in versions: PHP 5.3.0

Call a static method and pass the arguments as array

Parameters

Parameter Data type Default value Note
$function callback not The function or method to be called. This parameter may be an &array;, with the name of the class, and the method, or a &string;, with a function name.
$parameters array null

Return values

mixed

the function result, or false on error.

Other resources

Forward-static-call-array official documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.