Я объясню вопрос простой функцией, принимающей любое число функций
function abc() {
$args = func_get_args();
//Now lets use the first parameter in something...... In this case a simple echo
echo $args[0];
//Lets remove this first parameter
unset($args[0]);
//Now I want to send the remaining arguments to different function, in the same way as it received
.. . ...... BUT NO IDEA HOW TO . ..................
//tried doing something like this, for a work around
$newargs = implode(",", $args);
//Call Another Function
anotherFUnction($newargs); //This function is however a constructor function of a class
// ^ This is regarded as one arguments, not mutliple arguments....
}
Надеюсь, теперь вопрос ясен, как обходится эта ситуация?
Обновление
Я забыл упомянуть, что следующая функция, которую я вызываю, это класс конструктора другого класса.Что-то вроде
$newclass = new class($newarguments);