<?php
//example code
$url = 'http://clients1.google.com/complete/search?hl=en&q=speed';
function processURL( $url )
{
$contents = file_get_contents( $url );
return $contents;
}
print_r( processURL($url) );
?>
Output:
window.google.ac.h(["speed",[["speed test","89,300,000 results","0"],["speed channel","76,100,000 results","1"],["speed of light","120,000,000 results","2"],["speed test speakeasy","362,000 results","3"],["speedfan","1,660,000 results","4"],["speed of sound","83,200,000 results","5"],["speedy rewards","2,790,000 results","6"],["speedo","6,580,000 results","7"],["speedway","12,800,000 results","8"],["speedway motors","486,000 results","9"]]])
example output of what I want:
out[0].word['speed test'];
out[0].results['89,300,000'];
out[1].word['speed channel'];
out[1].results['76,100,000'];
out[2].word['speed of light'];
out[2].results['120,000,000'];
etc...
Thanks for any help.