I have a txt file that contains an array like this:
array (
0 => 'jack',
1 => 'alex'
)
I want to use this array in my PHP code but it is not working as on this example which returns a
$list= file_get_contents(myfile.txt);
echo $list[0];
How can I convert it ?