View Single Post
Old 05-03-2008, 08:36 PM   #7 (permalink)
Gibou
The Contributor
 
Gibou's Avatar
 
Join Date: Nov 2007
Location: France, near Paris
Posts: 53
Thanks: 6
Gibou is on a distinguished road
Default

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;
}
?>
__________________
Wedus project's Website
Send a message via MSN to Gibou
Gibou is offline  
Reply With Quote
The Following User Says Thank You to Gibou For This Useful Post:
delayedinsanity (05-03-2008)