小编use*_*622的帖子

在php中解析stdClass对象数据

我是一名中级PHP程序员,但我正在努力使用Google AJAX API的输出.我有以下转换为stdClass

stdClass Object ( 
    [responseData] => stdClass Object ( 
       [results] => Array ( 
            [0] => stdClass Object ( 
                [GsearchResultClass] => GwebSearch 
                [unescapedUrl] => http://www.1860-1960.com/shoes.html 
                [url] => http://www.1860-1960.com/shoes.html 
                [visibleUrl] => www.1860-1960.com 
                [cacheUrl] => http://www.google.com/search?q=cache:4bB2OicXg5EJ:www.1860-1960.com 
                [title] => Beautiful Antique Shoes and Boots, Vintage Fashions            [titleNoFormatting] => Beautiful Antique Shoes and Boots, Vintage Fashions 
                [content] => Victorian White Kid Child's Straight Sole Shoes c1850. Victorian Child's Needlepoint Bunny ... Lovely Vintage Shoes. Antique shoes or antique boots. ... 
            ) 
            [1] => …
Run Code Online (Sandbox Code Playgroud)

php stdclass

2
推荐指数
1
解决办法
9551
查看次数

标签 统计

php ×1

stdclass ×1