Пересылать неопределенное количество аргументов другой функции

Я объясню вопрос с помощью простой функции, принимающей любое количество функций

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);
5
задан Starx 21 June 2011 в 08:27
поделиться