Php algorithm - How to achieve that without eval
- by Marcelo
I have a class that keeps data stores/access data by using words.separated.by.dots keys and it behaves like the following:
$object = new MyArray()
$object->setParam('user.name','marcelo');
$object->setParam('user.email','some@email.com');
$object->getParams();
/*
array(
'user' => array(
…