Date: 05/13/01
- Next message: j-f <email protected>: "[PHP-DEV] Bug #10836 Updated: German translation of chop()"
- Previous message: derick <email protected>: "[PHP-DEV] Bug #7755 Updated: bitwise and misbehaving with & 0xffffff00"
- In reply to: Sterling Hughes: "Re: [PHP-DEV] call_user_*()"
- Next in thread: Sterling Hughes: "Re: [PHP-DEV] call_user_*()"
- Reply: Sterling Hughes: "Re: [PHP-DEV] call_user_*()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Sterling Hughes" <sterling <email protected>> schrieb im Newsbeitrag
news:3AFE1D61.1070304 <email protected>
> >>
> >> Whereas, replacing the call_user_func above with the following:
> >>
> >> call_user_func($name, array($param1));
> >>
> >
> > Well, I thought that the function call_user_func_array() is supposed to
be
> > called this way. What good is it anyway? I suggest
'call_user_func_array'
> > should
> > be removed as it is not needed and also doesn't work with user functions
> > that
> > expect arguments by reference.
> >
>
>
> Well it is needed... If you need to decide how many arguments to pass
> to a function at execution time then the call_user_func_array() function
> is critical.
>
But you said that 'call_user_func' can be also called like this:
call_user_func($function_name, array($arg1, arg2, arg3));
Where's the difference between call_user_func and call_user_func_array?
Regards,
Stefan Livieratos
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: j-f <email protected>: "[PHP-DEV] Bug #10836 Updated: German translation of chop()"
- Previous message: derick <email protected>: "[PHP-DEV] Bug #7755 Updated: bitwise and misbehaving with & 0xffffff00"
- In reply to: Sterling Hughes: "Re: [PHP-DEV] call_user_*()"
- Next in thread: Sterling Hughes: "Re: [PHP-DEV] call_user_*()"
- Reply: Sterling Hughes: "Re: [PHP-DEV] call_user_*()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

