1
回答
问个 数组和对象在一起的 怎么取值
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

(
    [result] => stdClass Object
        (
            [status] => stdClass Object
                (
                    [code] => 0
                    [msg] => 
                )

            [data] => Array
                (
                    [0] => stdClass Object
                        (
                            [LeagueType] => 325
                            [MatchType] => 21
                            [id] => 127460
                            [IfLive] => 0
                            [LiveStatus] => 0
                            [IfHot] => 0
                            [Team1Id] => 1207
                            [Team2Id] => 2386
                            [Discipline] => football
                            [ShortTitle] => 
                            [MatchDate] => 2015-07-10
                            [MatchTime] => 07:00
                            [data_from] => live
                            [Score1] => 
                            [Score2] => 
                            [Team1] => 特立尼达和多巴哥
                            [Team2] => 危地马拉
                            [Url1] => http://match.sports.sina.com.cn/football/team.php?id=1207
                            [Url2] => http://match.sports.sina.com.cn/football/team.php?id=2386
                            [Flag1] => http://www.sinaimg.cn/lf/sports/logo35/1207.png
                            [Flag2] => http://www.sinaimg.cn/lf/sports/logo35/2386.png
                            [Title] => 金杯赛 特立尼达和多巴哥 VS 危地马拉
                            [ImgUrl] => 
                            [VideoUrl] => 
                            [TV] => 
                            [Television] => 
                            [VideoLiveUrl] => 
                            [NewsUrl] => 
                            [odds_url] => 
                            [status] => 0
                            [live_url] => 
                            [shilu_url] => 
                            [popup_url] => http://data.sports.sina.com.cn/live/goal.php?mid=1104495&date=2015-07-10
                            [shuju_url] => 
                            [type] => 国际足球
                            [type_num] => 2
                            [type_pic] => http://match.sports.sina.com.cn/public/images/index_temp/zuqiu.png
                            [LeagueType_cn] => 金杯赛
                            [guess_id] => 
                            [guess_url] => 
                        )

                    [1] => stdClass Object
                        (
                            [LeagueType] => 325
                            [MatchType] => 21
                            [id] => 127461
                            [IfLive] => 0
                            [LiveStatus] => 0
                            [IfHot] => 0
                            [Team1Id] => 1545
                            [Team2Id] => 2466
                            [Discipline] => football
                            [ShortTitle] => 
                            [MatchDate] => 2015-07-10
                            [MatchTime] => 09:30
                            [data_from] => live
                            [Score1] => 
                            [Score2] => 
                            [Team1] => 墨西哥
                            [Team2] => 古巴
                            [Url1] => http://match.sports.sina.com.cn/football/team.php?id=1545
                            [Url2] => http://match.sports.sina.com.cn/football/team.php?id=2466
                            [Flag1] => http://www.sinaimg.cn/lf/sports/logo35/1545.png
                            [Flag2] => http://www.sinaimg.cn/lf/sports/logo35/2466.png
                            [Title] => 金杯赛 墨西哥 VS 古巴
                            [ImgUrl] => 
                            [VideoUrl] => 
                            [TV] => 
                            [Television] => 
                            [VideoLiveUrl] => 
                            [NewsUrl] => 
                            [odds_url] => 
                            [status] => 0
                            [live_url] => 
                            [shilu_url] => 
                            [popup_url] => http://data.sports.sina.com.cn/live/goal.php?mid=1104496&date=2015-07-10
                            [shuju_url] => 
                            [type] => 国际足球
                            [type_num] => 2
                            [type_pic] => http://match.sports.sina.com.cn/public/images/index_temp/zuqiu.png
                            [LeagueType_cn] => 金杯赛
                            [guess_id] => 
                            [guess_url] => 
                        )

请问怎么获取 [Team2] => 危地马拉的值

<无标签>
举报
kacc850
发帖于2年前 1回/843阅
顶部