|
call_user_func_arrayCall a callback with an array of parameters Beschreibung
mixed call_user_func_array
( callable
$callback
, array $param_arr
)
Calls the Parameter-Liste
Rückgabewerte
Returns the return value of the callback, or Changelog
Beispiele
Beispiel #1 call_user_func_array example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: foobar got one and two foo::bar got three and four Beispiel #2 call_user_func_array using namespace name
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: Hello Hannes! Hello Philip! Beispiel #3 Using lambda function
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: int(8) Beispiel #4 Passing values by reference
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: function mega $a=55 global $bar=55 Anmerkungen
Siehe auch
|