开发者

Invalid argument supplied for foreach() using Bing API

开发者 https://www.devze.com 2023-03-22 09:06 出处:网络
I am getting Invalid argument supplied for foreach() error. Am using Bing API. The code which contains the errors is.<?php

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消