Do you have an idea, how can a string be converted to a variable, e.g.
- there is a string ->
$string = 'one|two|three'; - there is an array ->
$arr = array('one' => array('two' => array('three' => 'WELCOME')));
I want to use all with explode(); exploded values to access the array $arr. I tried this code:
$c = explode('|', $string);
$str = 'arr[' . implode('][', $c) . ']';
echo $$str;
It doesnt work, sadly :( Any ideas?