I have the following example data array:
$data = [];
$data["general"]["login"] = "Auth"
$data["general"]["login_failed"]["err1"] = "First error"
and the following request var:
$reqvar = "['general']['login']";
I'd like to:
print_r($data{$reqvar});
which would translate as
print_r($data['general']['login']);
but it doesn't seems to work
I'm not willing to iterate over the full array, it doesn't make sense considering that I know the path of the value that I want to print.
Thank you