Hello.
I need to create an array dynamically from a string value. Please advise how is it possible to retrieve the array values by keys.
$mystring = 'myarray';
$myarray = ['a','b','c'];
echo '<pre>';
print_r($$mystring); // it works properly
echo '</pre>';
echo $$mystring[0]; // returns error