Image

Imagefuzzygoth wrote in Imagewebdev 😡frustrated work

Getting Variables from JSON in PHP

I have been working with the Ajax Google search (sans javascript) but I am
totally stuck. Does anyone know how after using the $json->decode($my_var);
how to strip the individual values out so I can display the Google search
Results. Its driving me up the wall and there is very little documentation
on this that I can find to use.


decode($body);
$arr[] = $output;

var_dump($output);

// this bit gives me nothing at all and I am not sure how it should be configured
echo '"


sample":' . $arr[0]->unescapedUrl . '';

?>


posting seems to have mangled my code :(