View Single Post
Old 08-17-2008, 07:32 AM   #3 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

A much simpler way to pass multiple arguments via an array if you have Reflection available to you;

PHP Code:
$pReflect = new ReflectionClass($class);
self::$_registry[$class] = $pReflect->newInstanceArgs($args); 
-m
delayedinsanity is offline  
Reply With Quote
The Following User Says Thank You to delayedinsanity For This Useful Post:
Theo (08-17-2008)