I have a file data.php, it has this code
<?php
$car[0]="BMW";$car[1]="Audi";$acr[2]="Honda";
$mob[0]="apple";$mob[1]="Nokia";$mob[2]="Sony";
?>
<html>
<body>
Some html code...
</body>
</html>
I want to create a php file that reads data.php and gives me the array named mob to use in this new file and I don't need html or other php code so include 'data.php' may not not work.
Basically, I need a php code that fetches a specific array in a different php file to reuse.