Invalid argument supplied for foreach() using Bing API
I am getting Invalid argument supplied for foreach() error. Am using Bing API. The code which contains the errors is.<?php
foreach($obj->SearchResponse->Web->Result开发者_如何学Pythons as $value){
?>
use var_dump
and make sure that $obj->SearchResponse->Web->Results
is indeed an array.
精彩评论