Basically I want to do this:
$var=$array['key1']['key2']['key3'][...];
My problem:
The information about the keys is stored in a string.
for example:
$arraypathstring="['articles']['title']";
The only solution I found to solve this problem was to assemble a string first and then use the eval function.
eval('$var=$array'.$arraypathstring.';');
This works, but as there are some security issues with the eval function, I would like to know...
... If there is another way of achieving the same result
... or what I can do to reduce security risks, when using the eval function