I am trying to rerwite an application into php, which previously uses the $.get call in javascript, is there a way to call this in php so that i can use the response array 'answers'?
$.get('crawl.php', { text: passURL }, function(answer) {
images = answer.images;
}, "json");
the only thing i found was the http_get method which doesnt seem to be responding with anything
$response = http_get('crawl.php', array( text=> $passURL), $answer);
$images = $answer['images'];
Am i just calling that method wrong or is there an alternative i should be using in php?