Zitat:
Und call_user_func ist leider keine alternative da es nichts zurückgibt...
|
Falsch!
Dann lese ich dir mal das Handbuch vor.....
Quelle:
http://de3.php.net/manual/de/functio...func-array.php
http://de3.php.net/manual/de/functio...-user-func.php
Zitat:
Rückgabewerte
Returns the function result, or FALSE on error.
|
Zitat:
param_arr
The parameters to be passed to the function, as an indexed array.
|
Trim Beispiel:
PHP-Code:
// also so:
echo call_user_func_array('trim',array('--------Ein Wort!--------','-'));
PHP-Code:
// oder so:
echo call_user_func('trim','--------Ein Wort!--------','-');
;