Is it somehow possible to use a string as an actual variable name? Sothing like this:
$a = '$myvariable[\'subitem\']';
How can I convert variable $a in order to actually work with a variable
$myvariable['subitem'] ?
EXAMPLE:
$myvariable['subitem'] = "hello";
$a = '$myvariable[\'subitem\']';
// do somenthing with $a
echo $a // outputs "hello" instead of $myvariable['subitem']
$myvariable['subitem']?$item = 'subitem'; $myarray[$item]? (The goal is unclear to me.)