Am new to PHP and am using php5.2, I need to convert a file content into a two-dimensional array, ie my file content will be
"Higher Studies" => "#",
"Symposiums" => "#",
"Conferences" => "#"
And my expected output is,
Array ( [Higher Studies] => # [Symposiums] => # [Conferences] => # )
PHP functions I tried to achieve this,
$values = file_get_contents($url);
echo $values;
$array = explode(",", $values);
$array = array(file_get_contents($url));
$array = file('http://localhost/test1.php');
And finally I am getting an answer like this,
Array ( [0] => "Higher Studies" => "#", [1] => "Symposiums" => "#", [2] => "Conferences" => "#" )
Is this the possible way we can read from a file or Is it possible to get a solution as like What I expected??