我已經看過PHP手冊。但我不明白早期版本和更高版本的PHP之間的行爲差異。我不明白這樣的說法:func_num_args,func_get_arg和func_get_args從php 5.2到5.3的行爲差異
Because this function depends on the current scope to determine parameter details, it cannot be used as a function parameter in versions prior to 5.3.0. If this value must be passed, the results should be assigned to a variable, and that variable should be passed.
它可能與PHP在調用函數的範圍和它傳遞給它的函數之間真的混淆了。 – BoltClock
在一些非常奇怪的情況下,它似乎也可以工作:http://codepad.org/MQkQnnJH – cmbuckley