Dynamic Compiling of PHP

This si my question… mabie exist another way to do it.

I have a php in one server that returns to me results of a query to the database in that server… then it tak ethe results into a variable, doing this:


$r=file("http://.../t.php?t=value");

how can I echo the resuslts in the t.php file so then order it in an array and then I can acces the results like I could do with mysql_results()…?

is this posible in some way?


$var1="array(1,2,3) @ array(a,b,c)"
$var2=explode('@', $var1)

echo $var2[0][0]; # trace 1
echo $var2[1][0]; # trace a