I have this variable
$foo['title'] = 'Hello World';
I want to access this variable from a string.
$string = '$foo["title"]';
How can I display "Hello World" by my variable $string?
I searched an other topic, i found something similar, unfortunately it doesn't work.
$foo['title'] = "Hello, world!";
$bar = "foo['title']";
echo $$bar;
$bar = $foo['title'];?