我只是查询了一个api来返回游戏的一些数据。结果是一个数组,其中每个集合包含epoch datecreated字段。
使用php我希望能够仅筛选出包含datecreated>的数据的所有数据。 1444639042(划时代)。
这怎么可能?
我使用github的leaguewrap作为我的类来提取数据:
// Get Match History
$game = $api->game();
$games = $game->recent($loluser);
返回:
{
"games": [
{
"fellowPlayers": [
{
"championId": 84,
"teamId": 200,
"summonerId": 4972120
},
{
"championId": 23,
"teamId": 200,
"summonerId": 1011313
},
{
"championId": 18,
"teamId": 100,
"summonerId": 456905
},
{
"championId": 77,
"teamId": 100,
"summonerId": 2751172
},
{
"championId": 131,
"teamId": 100,
"summonerId": 5100445
},
{
"championId": 1,
"teamId": 200,
"summonerId": 841536
},
{
"championId": 99,
"teamId": 200,
"summonerId": 4400359
},
{
"championId": 18,
"teamId": 200,
"summonerId": 3652614
},
{
"championId": 80,
"teamId": 100,
"summonerId": 600691
}
],
"gameType": "MATCHED_GAME",
"stats": {
"totalDamageDealtToChampions": 17713,
"goldEarned": 11117,
"item1": 3174,
"wardPlaced": 15,
"totalDamageTaken": 19563,
"item0": 1056,
"trueDamageDealtPlayer": 4,
"physicalDamageDealtPlayer": 10423,
"trueDamageDealtToChampions": 4,
"killingSprees": 1,
"playerRole": 2,
"totalUnitsHealed": 3,
"playerPosition": 4,
"level": 16,
"magicDamageDealtToChampions": 16682,
"turretsKilled": 2,
"magicDamageDealtPlayer": 81369,
"neutralMinionsKilledEnemyJungle": 3,
"assists": 9,
"magicDamageTaken": 11659,
"numDeaths": 5,
"totalTimeCrowdControlDealt": 326,
"largestMultiKill": 1,
"physicalDamageTaken": 7526,
"sightWardsBought": 2,
"team": 100,
"win": false,
"totalDamageDealt": 91797,
"largestKillingSpree": 5,
"totalHeal": 2398,
"item4": 3135,
"item3": 3020,
"item6": 3340,
"item5": 3165,
"minionsKilled": 59,
"timePlayed": 2852,
"physicalDamageDealtToChampions": 1025,
"championsKilled": 5,
"trueDamageTaken": 377,
"goldSpent": 9620,
"neutralMinionsKilled": 3
},
"gameId": 107038398,
"ipEarned": 82,
"spell1": 3,
"teamId": 100,
"spell2": 7,
"gameMode": "CLASSIC",
"mapId": 11,
"level": 30,
"invalid": false,
"subType": "NORMAL",
"createDate": 1444289569012,
"championId": 99
}
]}