figured it out.
$this->$key = is_array($value) ? eval( 'return $value ;') : $value ;
}
Code:
foreach ( $ATTRIBS as $key => $value) { $this->$key = is_array($value) ? eval( 'return $value ;') : $value ;
}
Subject | Author | Views | Date |
---|---|---|---|
Conver this perl to php? | ryel01 | 6859 | Nov 8, 2005, 6:15 PM |
Re: [ryel01] Conver this perl to php? | ryel01 | 6719 | Nov 8, 2005, 11:04 PM |
Re: [ryel01] Conver this perl to php? | ryel01 | 6706 | Nov 10, 2005, 10:56 PM |