4
我想包裝一個無限數量參數的現有函數,例如 這是現有的功能:如何包裝無限數量參數的函數
function T()
{
$args = func_num_args();
// Do stuff with arguments.
}
我現在想包裝它,
/*
* This function shall also take unlimited arguments,
* and just pass them on to T().
*/
function myT()
{
// TODO: Take all arguments and pass them on to T().
$result = T();
// Do stuff with the result of T().
}
但是,我想不出如何通過無限的參數上T()
在myT()
。