05-03-2008, 08:36 PM
|
#7 (permalink)
|
|
The Contributor
Join Date: Nov 2007
Location: France, near Paris
Posts: 53
Thanks: 6
|
Excuse me if I haven't well understood but why don't you use something like that:
PHP Code:
<?php $pPointer=new Object(fung_get_args()); ?>
And in the Object constructor, you parse the array with a generic constructor like that:
PHP Code:
<?php if(is_array($args)) { foreach($args as $k=>$v) if(property_exists($this,$k)) $this->$k = $v; } ?>
|
|
|