i have array look like this:
$config = array(
'id' => 123,
'name' => 'bla bla',
'profile' => array(
'job' => 'coder',
'more' => 'info'
)
);
i want to create class Config look like this:
$c = new Config($config);
echo $c->profile->more;
somebody can help me?