我正在尝试从数组中获取数据,但总是失败。
这是数组:
Array
(
[gameSpecificLoyaltyRewards] =>
[reconnectDelay] => 0
[lastModifiedDate] =>
[game] => Game Object
(
[spectatorsAllowed:protected] => NONE
[passwordSet:protected] =>
[practiceGameRewardsDisabledReasons:protected] => Array
(
)
[gameType:protected] => RANKED_GAME
[gameTypeConfigId:protected] => 2
[glmGameId:protected] =>
[gameState:protected] => IN_PROGRESS
[glmHost:protected] =>
[observers:protected] => Array
(
)
[statusOfParticipants:protected] => 1111111111
[glmSecurePort:protected] => 0
[id:protected] => 58513543
[ownerSummary:protected] =>
[teamTwo:protected] => Array
(
[0] => zlokomatic\phpLoL\amf\game\PlayerParticipant Object
(
[accountId:protected] => 346001
[queueRating:protected] => 0
[botDifficulty:protected] => NONE
[minor:protected] =>
[locale:protected] =>
[partnerId:protected] =>
[lastSelectedSkinIndex:protected] => 0
[profileIconId:protected] => 548
[rankedTeamGuest:protected] =>
[summonerId:protected] => 361101
[selectedRole:protected] =>
[pickMode:protected] => 0
[teamParticipantId:protected] => 138114436
[timeAddedToQueue:protected] => 1384270965374
使用PHP,我试图得到:
[gameType:protected] => RANKED_GAME
和
[accountId:protected] => 346001