I have a PHP file,But data of the file is the Array.
When i open the file , i am able to get its content, but am unable to read it as an array. Its just reading as a string. Is there any way to read a php file as array.
My php file looks like,
<?php $someArray = array (
0 =>
array (
'data' => 'sadsa',
'sadsad' => 'sdsss',
......
'DOB' =>
array (
0 =>
array (
'Day' => '12',
'Month' => '12',
'Year' => '12',
),
),
..
...
),
1 =>
...........
...
2 =>
...
....
Reading the file using,
file_get_contents ( '$filepath' );
Now i want to read the file and access it as an array.
includeorrequireor what have you.includeinstead