fork download
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. $var = <<<EOT
  6. {
  7. "games": [
  8. {
  9. "fellowPlayers": [
  10. {
  11. "championId": 89,
  12. "teamId": 100,
  13. "summonerId": 39481845
  14. },
  15. {
  16. "championId": 54,
  17. "teamId": 100,
  18. "summonerId": 42827130
  19. },
  20. {
  21. "championId": 51,
  22. "teamId": 200,
  23. "summonerId": 32781300
  24. },
  25. {
  26. "championId": 53,
  27. "teamId": 200,
  28. "summonerId": 24557573
  29. },
  30. {
  31. "championId": 91,
  32. "teamId": 100,
  33. "summonerId": 34521106
  34. },
  35. {
  36. "championId": 72,
  37. "teamId": 100,
  38. "summonerId": 23330235
  39. },
  40. {
  41. "championId": 28,
  42. "teamId": 200,
  43. "summonerId": 41672675
  44. },
  45. {
  46. "championId": 38,
  47. "teamId": 200,
  48. "summonerId": 39541803
  49. },
  50. {
  51. "championId": 42,
  52. "teamId": 100,
  53. "summonerId": 39485157
  54. }
  55. ],
  56. "gameType": "MATCHED_GAME",
  57. "stats": {
  58. "totalDamageDealtToChampions": 17024,
  59. "item2": 1011,
  60. "goldEarned": 11202,
  61. "item1": 3255,
  62. "wardPlaced": 19,
  63. "totalDamageTaken": 26576,
  64. "item0": 3001,
  65. "trueDamageDealtPlayer": 1412,
  66. "physicalDamageDealtPlayer": 21416,
  67. "trueDamageDealtToChampions": 1222,
  68. "visionWardsBought": 1,
  69. "killingSprees": 1,
  70. "totalUnitsHealed": 1,
  71. "level": 16,
  72. "magicDamageDealtToChampions": 13946,
  73. "turretsKilled": 1,
  74. "magicDamageDealtPlayer": 62799,
  75. "neutralMinionsKilledEnemyJungle": 1,
  76. "assists": 7,
  77. "magicDamageTaken": 12347,
  78. "numDeaths": 8,
  79. "totalTimeCrowdControlDealt": 559,
  80. "largestMultiKill": 1,
  81. "physicalDamageTaken": 13596,
  82. "sightWardsBought": 9,
  83. "team": 200,
  84. "win": false,
  85. "totalDamageDealt": 85628,
  86. "largestKillingSpree": 3,
  87. "totalHeal": 594,
  88. "item4": 3191,
  89. "item3": 3136,
  90. "item6": 3340,
  91. "item5": 1026,
  92. "minionsKilled": 134,
  93. "timePlayed": 2464,
  94. "physicalDamageDealtToChampions": 1855,
  95. "championsKilled": 6,
  96. "trueDamageTaken": 632,
  97. "goldSpent": 9995,
  98. "neutralMinionsKilled": 1
  99. },
  100. "gameId": 1588720102,
  101. "ipEarned": 74,
  102. "spell1": 4,
  103. "teamId": 200,
  104. "spell2": 14,
  105. "gameMode": "CLASSIC",
  106. "mapId": 1,
  107. "level": 30,
  108. "invalid": false,
  109. "subType": "RANKED_SOLO_5x5",
  110. "createDate": 1406220416223,
  111. "championId": 68
  112. },
  113. {
  114. "fellowPlayers": [
  115. {
  116. "championId": 4,
  117. "teamId": 100,
  118. "summonerId": 25244930
  119. },
  120. {
  121. "championId": 51,
  122. "teamId": 200,
  123. "summonerId": 19844480
  124. },
  125. {
  126. "championId": 75,
  127. "teamId": 200,
  128. "summonerId": 21526397
  129. },
  130. {
  131. "championId": 75,
  132. "teamId": 100,
  133. "summonerId": 50549159
  134. },
  135. {
  136. "championId": 236,
  137. "teamId": 100,
  138. "summonerId": 48875092
  139. }
  140. ],
  141. "gameType": "CUSTOM_GAME",
  142. "stats": {
  143. "totalDamageDealtToChampions": 15634,
  144. "item2": 3191,
  145. "barracksKilled": 1,
  146. "goldEarned": 11143,
  147. "item1": 3100,
  148. "wardPlaced": 10,
  149. "item0": 1056,
  150. "totalDamageTaken": 11161,
  151. "trueDamageDealtPlayer": 1444,
  152. "physicalDamageDealtPlayer": 20399,
  153. "trueDamageDealtToChampions": 1244,
  154. "visionWardsBought": 1,
  155. "killingSprees": 2,
  156. "totalUnitsHealed": 1,
  157. "level": 17,
  158. "neutralMinionsKilledYourJungle": 4,
  159. "magicDamageDealtToChampions": 12314,
  160. "turretsKilled": 1,
  161. "magicDamageDealtPlayer": 69900,
  162. "neutralMinionsKilledEnemyJungle": 1,
  163. "assists": 8,
  164. "magicDamageTaken": 4268,
  165. "numDeaths": 4,
  166. "totalTimeCrowdControlDealt": 299,
  167. "largestMultiKill": 1,
  168. "physicalDamageTaken": 5920,
  169. "sightWardsBought": 5,
  170. "team": 200,
  171. "win": true,
  172. "totalDamageDealt": 91743,
  173. "largestKillingSpree": 2,
  174. "totalHeal": 928,
  175. "item4": 3089,
  176. "item3": 3255,
  177. "item6": 3340,
  178. "item5": 2039,
  179. "minionsKilled": 148,
  180. "timePlayed": 1771,
  181. "physicalDamageDealtToChampions": 2076,
  182. "championsKilled": 5,
  183. "trueDamageTaken": 972,
  184. "goldSpent": 10230,
  185. "neutralMinionsKilled": 5
  186. },
  187. "gameId": 1588501286,
  188. "ipEarned": 10,
  189. "spell1": 4,
  190. "teamId": 200,
  191. "spell2": 14,
  192. "gameMode": "CLASSIC",
  193. "mapId": 1,
  194. "level": 30,
  195. "invalid": false,
  196. "subType": "NONE",
  197. "createDate": 1406217331959,
  198. "championId": 4
  199. },
  200. {
  201. "fellowPlayers": [
  202. {
  203. "championId": 10,
  204. "teamId": 100,
  205. "summonerId": 25244930
  206. },
  207. {
  208. "championId": 18,
  209. "teamId": 200,
  210. "summonerId": 19844480
  211. },
  212. {
  213. "championId": 134,
  214. "teamId": 200,
  215. "summonerId": 21526397
  216. },
  217. {
  218. "championId": 84,
  219. "teamId": 100,
  220. "summonerId": 50549159
  221. },
  222. {
  223. "championId": 119,
  224. "teamId": 100,
  225. "summonerId": 48875092
  226. }
  227. ],
  228. "gameType": "CUSTOM_GAME",
  229. "stats": {
  230. "totalDamageDealtToChampions": 13266,
  231. "goldEarned": 8403,
  232. "item2": 3070,
  233. "item1": 3027,
  234. "wardPlaced": 11,
  235. "totalDamageTaken": 18587,
  236. "item0": 3255,
  237. "trueDamageDealtPlayer": 1008,
  238. "physicalDamageDealtPlayer": 11695,
  239. "trueDamageDealtToChampions": 880,
  240. "visionWardsBought": 2,
  241. "totalUnitsHealed": 1,
  242. "largestCriticalStrike": 437,
  243. "level": 15,
  244. "neutralMinionsKilledYourJungle": 3,
  245. "magicDamageDealtToChampions": 11367,
  246. "magicDamageDealtPlayer": 52692,
  247. "assists": 7,
  248. "magicDamageTaken": 8796,
  249. "numDeaths": 4,
  250. "totalTimeCrowdControlDealt": 2261,
  251. "largestMultiKill": 1,
  252. "physicalDamageTaken": 9159,
  253. "sightWardsBought": 5,
  254. "win": true,
  255. "team": 200,
  256. "totalDamageDealt": 65396,
  257. "totalHeal": 8503,
  258. "item4": 1052,
  259. "item3": 1028,
  260. "item6": 3340,
  261. "item5": 1052,
  262. "minionsKilled": 107,
  263. "timePlayed": 1614,
  264. "physicalDamageDealtToChampions": 1019,
  265. "championsKilled": 2,
  266. "trueDamageTaken": 632,
  267. "neutralMinionsKilled": 3,
  268. "goldSpent": 7270
  269. },
  270. "gameId": 1588500684,
  271. "ipEarned": 45,
  272. "spell1": 4,
  273. "teamId": 200,
  274. "spell2": 14,
  275. "gameMode": "CLASSIC",
  276. "mapId": 1,
  277. "level": 30,
  278. "invalid": false,
  279. "subType": "NONE",
  280. "createDate": 1406215307372,
  281. "championId": 34
  282. },
  283. {
  284. "fellowPlayers": [
  285. {
  286. "championId": 133,
  287. "teamId": 100,
  288. "summonerId": 26542295
  289. },
  290. {
  291. "championId": 18,
  292. "teamId": 200,
  293. "summonerId": 41217306
  294. },
  295. {
  296. "championId": 76,
  297. "teamId": 200,
  298. "summonerId": 25244930
  299. },
  300. {
  301. "championId": 8,
  302. "teamId": 100,
  303. "summonerId": 50549159
  304. },
  305. {
  306. "championId": 134,
  307. "teamId": 100,
  308. "summonerId": 48875092
  309. }
  310. ],
  311. "gameType": "CUSTOM_GAME",
  312. "stats": {
  313. "totalDamageDealtToChampions": 22648,
  314. "item2": 3135,
  315. "goldEarned": 16713,
  316. "item1": 3157,
  317. "wardPlaced": 18,
  318. "totalDamageTaken": 22728,
  319. "item0": 3089,
  320. "trueDamageDealtPlayer": 47521,
  321. "physicalDamageDealtPlayer": 28736,
  322. "trueDamageDealtToChampions": 4154,
  323. "visionWardsBought": 1,
  324. "killingSprees": 2,
  325. "totalUnitsHealed": 1,
  326. "level": 18,
  327. "neutralMinionsKilledYourJungle": 15,
  328. "magicDamageDealtToChampions": 17523,
  329. "turretsKilled": 1,
  330. "magicDamageDealtPlayer": 92586,
  331. "neutralMinionsKilledEnemyJungle": 7,
  332. "assists": 7,
  333. "magicDamageTaken": 9338,
  334. "numDeaths": 3,
  335. "totalTimeCrowdControlDealt": 147,
  336. "largestMultiKill": 1,
  337. "physicalDamageTaken": 13159,
  338. "sightWardsBought": 5,
  339. "team": 200,
  340. "win": true,
  341. "totalDamageDealt": 168845,
  342. "largestKillingSpree": 7,
  343. "totalHeal": 6601,
  344. "item4": 3255,
  345. "item3": 3001,
  346. "item6": 3340,
  347. "item5": 1011,
  348. "minionsKilled": 182,
  349. "timePlayed": 2939,
  350. "physicalDamageDealtToChampions": 970,
  351. "championsKilled": 12,
  352. "trueDamageTaken": 230,
  353. "goldSpent": 15585,
  354. "neutralMinionsKilled": 22
  355. },
  356. "gameId": 1587230136,
  357. "ipEarned": 83,
  358. "spell1": 4,
  359. "teamId": 200,
  360. "spell2": 14,
  361. "gameMode": "CLASSIC",
  362. "mapId": 1,
  363. "level": 30,
  364. "invalid": false,
  365. "subType": "NONE",
  366. "createDate": 1406211990851,
  367. "championId": 103
  368. },
  369. {
  370. "fellowPlayers": [
  371. {
  372. "championId": 56,
  373. "teamId": 100,
  374. "summonerId": 26542295
  375. },
  376. {
  377. "championId": 18,
  378. "teamId": 200,
  379. "summonerId": 41217306
  380. },
  381. {
  382. "championId": 80,
  383. "teamId": 100,
  384. "summonerId": 25244930
  385. },
  386. {
  387. "championId": 115,
  388. "teamId": 100,
  389. "summonerId": 36690585
  390. },
  391. {
  392. "championId": 75,
  393. "teamId": 200,
  394. "summonerId": 50549159
  395. },
  396. {
  397. "championId": 81,
  398. "teamId": 100,
  399. "summonerId": 48875092
  400. }
  401. ],
  402. "gameType": "CUSTOM_GAME",
  403. "stats": {
  404. "totalDamageDealtToChampions": 28501,
  405. "item2": 3135,
  406. "goldEarned": 11641,
  407. "item1": 3255,
  408. "wardPlaced": 21,
  409. "totalDamageTaken": 24551,
  410. "item0": 3128,
  411. "trueDamageDealtPlayer": 1372,
  412. "physicalDamageDealtPlayer": 29992,
  413. "trueDamageDealtToChampions": 986,
  414. "killingSprees": 3,
  415. "totalUnitsHealed": 1,
  416. "level": 18,
  417. "doubleKills": 1,
  418. "neutralMinionsKilledYourJungle": 7,
  419. "magicDamageDealtToChampions": 21412,
  420. "magicDamageDealtPlayer": 52096,
  421. "assists": 4,
  422. "magicDamageTaken": 10089,
  423. "numDeaths": 5,
  424. "totalTimeCrowdControlDealt": 151,
  425. "largestMultiKill": 2,
  426. "physicalDamageTaken": 13567,
  427. "sightWardsBought": 6,
  428. "team": 200,
  429. "win": false,
  430. "totalDamageDealt": 83461,
  431. "largestKillingSpree": 5,
  432. "totalHeal": 3255,
  433. "item4": 1026,
  434. "item3": 3057,
  435. "item6": 3340,
  436. "item5": 3191,
  437. "minionsKilled": 99,
  438. "timePlayed": 2405,
  439. "physicalDamageDealtToChampions": 6102,
  440. "championsKilled": 13,
  441. "trueDamageTaken": 894,
  442. "goldSpent": 11830,
  443. "neutralMinionsKilled": 7
  444. },
  445. "gameId": 1587229572,
  446. "ipEarned": 0,
  447. "spell1": 4,
  448. "teamId": 200,
  449. "spell2": 14,
  450. "gameMode": "CLASSIC",
  451. "mapId": 1,
  452. "level": 30,
  453. "invalid": false,
  454. "subType": "NONE",
  455. "createDate": 1406208373847,
  456. "championId": 105
  457. },
  458. {
  459. "fellowPlayers": [
  460. {
  461. "championId": 25,
  462. "teamId": 200,
  463. "summonerId": 26542295
  464. },
  465. {
  466. "championId": 84,
  467. "teamId": 100,
  468. "summonerId": 53310254
  469. },
  470. {
  471. "championId": 42,
  472. "teamId": 200,
  473. "summonerId": 25244930
  474. },
  475. {
  476. "championId": 19,
  477. "teamId": 100,
  478. "summonerId": 22479616
  479. },
  480. {
  481. "championId": 74,
  482. "teamId": 200,
  483. "summonerId": 44839383
  484. },
  485. {
  486. "championId": 8,
  487. "teamId": 200,
  488. "summonerId": 50549159
  489. },
  490. {
  491. "championId": 44,
  492. "teamId": 100,
  493. "summonerId": 35297150
  494. },
  495. {
  496. "championId": 222,
  497. "teamId": 100,
  498. "summonerId": 45088633
  499. },
  500. {
  501. "championId": 64,
  502. "teamId": 100,
  503. "summonerId": 49766969
  504. }
  505. ],
  506. "gameType": "MATCHED_GAME",
  507. "stats": {
  508. "totalDamageDealtToChampions": 6153,
  509. "goldEarned": 4610,
  510. "item2": 3255,
  511. "item1": 1080,
  512. "wardPlaced": 4,
  513. "totalDamageTaken": 13237,
  514. "item0": 1056,
  515. "trueDamageDealtPlayer": 6360,
  516. "physicalDamageDealtPlayer": 13397,
  517. "totalUnitsHealed": 1,
  518. "level": 10,
  519. "neutralMinionsKilledYourJungle": 43,
  520. "magicDamageDealtToChampions": 5065,
  521. "magicDamageDealtPlayer": 29928,
  522. "neutralMinionsKilledEnemyJungle": 2,
  523. "assists": 1,
  524. "magicDamageTaken": 3980,
  525. "numDeaths": 6,
  526. "totalTimeCrowdControlDealt": 69,
  527. "largestMultiKill": 1,
  528. "physicalDamageTaken": 9003,
  529. "win": false,
  530. "team": 200,
  531. "totalDamageDealt": 49686,
  532. "totalHeal": 640,
  533. "item3": 3191,
  534. "item6": 3340,
  535. "minionsKilled": 5,
  536. "timePlayed": 1274,
  537. "physicalDamageDealtToChampions": 1087,
  538. "championsKilled": 2,
  539. "trueDamageTaken": 254,
  540. "neutralMinionsKilled": 45,
  541. "goldSpent": 3975
  542. },
  543. "gameId": 1588096120,
  544. "ipEarned": 51,
  545. "spell1": 4,
  546. "teamId": 200,
  547. "spell2": 11,
  548. "gameMode": "CLASSIC",
  549. "mapId": 1,
  550. "level": 30,
  551. "invalid": false,
  552. "subType": "NORMAL",
  553. "createDate": 1406204717932,
  554. "championId": 131
  555. },
  556. {
  557. "fellowPlayers": [
  558. {
  559. "championId": 64,
  560. "teamId": 200,
  561. "summonerId": 22284925
  562. },
  563. {
  564. "championId": 58,
  565. "teamId": 100,
  566. "summonerId": 48777097
  567. },
  568. {
  569. "championId": 99,
  570. "teamId": 200,
  571. "summonerId": 30168748
  572. },
  573. {
  574. "championId": 67,
  575. "teamId": 200,
  576. "summonerId": 22362690
  577. },
  578. {
  579. "championId": 55,
  580. "teamId": 100,
  581. "summonerId": 20892749
  582. },
  583. {
  584. "championId": 60,
  585. "teamId": 100,
  586. "summonerId": 58369326
  587. },
  588. {
  589. "championId": 201,
  590. "teamId": 100,
  591. "summonerId": 37663858
  592. },
  593. {
  594. "championId": 122,
  595. "teamId": 200,
  596. "summonerId": 36650140
  597. },
  598. {
  599. "championId": 51,
  600. "teamId": 100,
  601. "summonerId": 26570347
  602. }
  603. ],
  604. "gameType": "MATCHED_GAME",
  605. "stats": {
  606. "totalDamageDealtToChampions": 13066,
  607. "goldEarned": 9767,
  608. "item2": 3068,
  609. "item1": 3401,
  610. "wardPlaced": 36,
  611. "totalDamageTaken": 32157,
  612. "item0": 3265,
  613. "trueDamageDealtPlayer": 3492,
  614. "physicalDamageDealtPlayer": 8231,
  615. "visionWardsBought": 3,
  616. "totalUnitsHealed": 5,
  617. "level": 17,
  618. "magicDamageDealtToChampions": 9878,
  619. "magicDamageDealtPlayer": 25955,
  620. "assists": 14,
  621. "magicDamageTaken": 18072,
  622. "numDeaths": 7,
  623. "totalTimeCrowdControlDealt": 172,
  624. "largestMultiKill": 1,
  625. "physicalDamageTaken": 13840,
  626. "sightWardsBought": 1,
  627. "win": false,
  628. "team": 200,
  629. "totalDamageDealt": 37679,
  630. "totalHeal": 3384,
  631. "item3": 3082,
  632. "item6": 3362,
  633. "minionsKilled": 42,
  634. "item5": 2049,
  635. "timePlayed": 2379,
  636. "wardKilled": 2,
  637. "physicalDamageDealtToChampions": 3188,
  638. "championsKilled": 2,
  639. "trueDamageTaken": 244,
  640. "goldSpent": 9245
  641. },
  642. "gameId": 1588018397,
  643. "ipEarned": 71,
  644. "spell1": 4,
  645. "teamId": 200,
  646. "spell2": 3,
  647. "gameMode": "CLASSIC",
  648. "mapId": 1,
  649. "level": 30,
  650. "invalid": false,
  651. "subType": "RANKED_SOLO_5x5",
  652. "createDate": 1406200461228,
  653. "championId": 89
  654. },
  655. {
  656. "fellowPlayers": [
  657. {
  658. "championId": 75,
  659. "teamId": 200,
  660. "summonerId": 39330605
  661. },
  662. {
  663. "championId": 60,
  664. "teamId": 200,
  665. "summonerId": 29726088
  666. },
  667. {
  668. "championId": 126,
  669. "teamId": 200,
  670. "summonerId": 30308502
  671. },
  672. {
  673. "championId": 121,
  674. "teamId": 100,
  675. "summonerId": 20419412
  676. },
  677. {
  678. "championId": 104,
  679. "teamId": 200,
  680. "summonerId": 19233904
  681. },
  682. {
  683. "championId": 36,
  684. "teamId": 100,
  685. "summonerId": 25490885
  686. },
  687. {
  688. "championId": 89,
  689. "teamId": 200,
  690. "summonerId": 25154268
  691. },
  692. {
  693. "championId": 18,
  694. "teamId": 100,
  695. "summonerId": 34538825
  696. },
  697. {
  698. "championId": 412,
  699. "teamId": 100,
  700. "summonerId": 35137696
  701. }
  702. ],
  703. "gameType": "MATCHED_GAME",
  704. "stats": {
  705. "totalDamageDealtToChampions": 38673,
  706. "item2": 3151,
  707. "goldEarned": 13973,
  708. "item1": 3255,
  709. "wardPlaced": 17,
  710. "totalDamageTaken": 25201,
  711. "item0": 3116,
  712. "trueDamageDealtPlayer": 872,
  713. "physicalDamageDealtPlayer": 13362,
  714. "trueDamageDealtToChampions": 872,
  715. "visionWardsBought": 2,
  716. "killingSprees": 2,
  717. "totalUnitsHealed": 1,
  718. "level": 18,
  719. "neutralMinionsKilledYourJungle": 8,
  720. "magicDamageDealtToChampions": 36582,
  721. "turretsKilled": 1,
  722. "magicDamageDealtPlayer": 84685,
  723. "neutralMinionsKilledEnemyJungle": 2,
  724. "assists": 15,
  725. "magicDamageTaken": 6257,
  726. "numDeaths": 7,
  727. "totalTimeCrowdControlDealt": 344,
  728. "largestMultiKill": 1,
  729. "physicalDamageTaken": 18589,
  730. "sightWardsBought": 9,
  731. "team": 100,
  732. "win": true,
  733. "totalDamageDealt": 98919,
  734. "largestKillingSpree": 3,
  735. "totalHeal": 3970,
  736. "item4": 1026,
  737. "item3": 3089,
  738. "item6": 3362,
  739. "minionsKilled": 92,
  740. "timePlayed": 2620,
  741. "wardKilled": 2,
  742. "physicalDamageDealtToChampions": 1218,
  743. "championsKilled": 8,
  744. "trueDamageTaken": 355,
  745. "goldSpent": 13355,
  746. "neutralMinionsKilled": 10
  747. },
  748. "gameId": 1587709307,
  749. "ipEarned": 117,
  750. "spell1": 4,
  751. "teamId": 100,
  752. "spell2": 14,
  753. "gameMode": "CLASSIC",
  754. "mapId": 1,
  755. "level": 30,
  756. "invalid": false,
  757. "subType": "RANKED_SOLO_5x5",
  758. "createDate": 1406158432539,
  759. "championId": 63
  760. },
  761. {
  762. "fellowPlayers": [
  763. {
  764. "championId": 51,
  765. "teamId": 200,
  766. "summonerId": 21721365
  767. },
  768. {
  769. "championId": 75,
  770. "teamId": 200,
  771. "summonerId": 35948635
  772. },
  773. {
  774. "championId": 134,
  775. "teamId": 100,
  776. "summonerId": 26611077
  777. },
  778. {
  779. "championId": 28,
  780. "teamId": 200,
  781. "summonerId": 38649675
  782. },
  783. {
  784. "championId": 133,
  785. "teamId": 100,
  786. "summonerId": 24487879
  787. },
  788. {
  789. "championId": 76,
  790. "teamId": 100,
  791. "summonerId": 32341217
  792. },
  793. {
  794. "championId": 53,
  795. "teamId": 200,
  796. "summonerId": 46857987
  797. },
  798. {
  799. "championId": 89,
  800. "teamId": 100,
  801. "summonerId": 19728850
  802. },
  803. {
  804. "championId": 254,
  805. "teamId": 100,
  806. "summonerId": 25924023
  807. }
  808. ],
  809. "gameType": "MATCHED_GAME",
  810. "stats": {
  811. "totalDamageDealtToChampions": 21579,
  812. "item2": 3151,
  813. "goldEarned": 8151,
  814. "item1": 3255,
  815. "wardPlaced": 13,
  816. "totalDamageTaken": 18490,
  817. "item0": 1056,
  818. "trueDamageDealtPlayer": 614,
  819. "physicalDamageDealtPlayer": 8396,
  820. "trueDamageDealtToChampions": 614,
  821. "visionWardsBought": 1,
  822. "killingSprees": 2,
  823. "totalUnitsHealed": 1,
  824. "level": 13,
  825. "doubleKills": 1,
  826. "neutralMinionsKilledYourJungle": 2,
  827. "magicDamageDealtToChampions": 20077,
  828. "magicDamageDealtPlayer": 47392,
  829. "assists": 5,
  830. "magicDamageTaken": 6705,
  831. "numDeaths": 9,
  832. "totalTimeCrowdControlDealt": 30,
  833. "largestMultiKill": 2,
  834. "physicalDamageTaken": 10656,
  835. "sightWardsBought": 7,
  836. "team": 200,
  837. "win": false,
  838. "totalDamageDealt": 56402,
  839. "largestKillingSpree": 3,
  840. "totalHeal": 567,
  841. "item3": 1058,
  842. "item6": 3340,
  843. "minionsKilled": 94,
  844. "timePlayed": 1781,
  845. "wardKilled": 1,
  846. "physicalDamageDealtToChampions": 887,
  847. "championsKilled": 6,
  848. "trueDamageTaken": 1129,
  849. "goldSpent": 7525,
  850. "neutralMinionsKilled": 2
  851. },
  852. "gameId": 1586694699,
  853. "ipEarned": 57,
  854. "spell1": 4,
  855. "teamId": 200,
  856. "spell2": 14,
  857. "gameMode": "CLASSIC",
  858. "mapId": 1,
  859. "level": 30,
  860. "invalid": false,
  861. "subType": "RANKED_SOLO_5x5",
  862. "createDate": 1406124748448,
  863. "championId": 63
  864. },
  865. {
  866. "fellowPlayers": [
  867. {
  868. "championId": 51,
  869. "teamId": 200,
  870. "summonerId": 26542295
  871. },
  872. {
  873. "championId": 101,
  874. "teamId": 200,
  875. "summonerId": 21521994
  876. },
  877. {
  878. "championId": 7,
  879. "teamId": 200,
  880. "summonerId": 21384687
  881. },
  882. {
  883. "championId": 222,
  884. "teamId": 100,
  885. "summonerId": 30806880
  886. },
  887. {
  888. "championId": 26,
  889. "teamId": 100,
  890. "summonerId": 27119793
  891. },
  892. {
  893. "championId": 10,
  894. "teamId": 100,
  895. "summonerId": 25217831
  896. },
  897. {
  898. "championId": 75,
  899. "teamId": 200,
  900. "summonerId": 44613583
  901. },
  902. {
  903. "championId": 126,
  904. "teamId": 100,
  905. "summonerId": 28892773
  906. },
  907. {
  908. "championId": 15,
  909. "teamId": 100,
  910. "summonerId": 19275706
  911. }
  912. ],
  913. "gameType": "MATCHED_GAME",
  914. "stats": {
  915. "totalDamageDealtToChampions": 28947,
  916. "item2": 3165,
  917. "goldEarned": 14017,
  918. "item1": 1001,
  919. "totalDamageTaken": 9443,
  920. "item0": 3098,
  921. "trueDamageDealtPlayer": 138,
  922. "physicalDamageDealtPlayer": 5185,
  923. "trueDamageDealtToChampions": 138,
  924. "killingSprees": 2,
  925. "totalUnitsHealed": 1,
  926. "level": 18,
  927. "doubleKills": 1,
  928. "magicDamageDealtToChampions": 27567,
  929. "turretsKilled": 1,
  930. "magicDamageDealtPlayer": 37310,
  931. "assists": 29,
  932. "magicDamageTaken": 3173,
  933. "numDeaths": 2,
  934. "totalTimeCrowdControlDealt": 219,
  935. "largestMultiKill": 2,
  936. "physicalDamageTaken": 6270,
  937. "team": 200,
  938. "win": true,
  939. "totalDamageDealt": 42634,
  940. "largestKillingSpree": 8,
  941. "totalHeal": 3130,
  942. "item4": 3089,
  943. "item3": 3089,
  944. "item5": 3135,
  945. "minionsKilled": 13,
  946. "timePlayed": 1466,
  947. "physicalDamageDealtToChampions": 1241,
  948. "championsKilled": 11,
  949. "goldSpent": 12465
  950. },
  951. "gameId": 1586631990,
  952. "ipEarned": 220,
  953. "spell1": 4,
  954. "teamId": 200,
  955. "spell2": 14,
  956. "gameMode": "ARAM",
  957. "mapId": 12,
  958. "level": 30,
  959. "invalid": false,
  960. "subType": "ARAM_UNRANKED_5x5",
  961. "createDate": 1406120150570,
  962. "championId": 99
  963. }
  964. ],
  965. "summonerId": 22339544
  966. }
  967. EOT;
  968.  
  969. $dataDecoded = json_decode($var, true);
  970.  
  971. for($i = 0; $i < 10; $i++) {
  972. $e[$i][0] = array( $dataDecoded['games'][$i]['gameMode']);
  973. $e[$i][1] = array( $dataDecoded['games'][$i]['subType']);
  974. $e[$i][2] = array( $dataDecoded['games'][$i]['stats']['win']);
  975. $e[$i][3] = array( $dataDecoded['games'][$i]['stats']['timePlayed']);
  976. $e[$i][4] = array( $dataDecoded['games'][$i]['stats']['championsKilled']);
  977. $e[$i][5] = array( $dataDecoded['games'][$i]['stats']['assists']);
  978. $e[$i][6] = array( $dataDecoded['games'][$i]['stats']['numDeaths']);
  979. }
  980.  
  981. var_dump($e);
  982.  
  983. ?>
Success #stdin #stdout 0.02s 20568KB
stdin
Standard input is empty
stdout
array(10) {
  [0]=>
  array(7) {
    [0]=>
    array(1) {
      [0]=>
      string(7) "CLASSIC"
    }
    [1]=>
    array(1) {
      [0]=>
      string(15) "RANKED_SOLO_5x5"
    }
    [2]=>
    array(1) {
      [0]=>
      bool(false)
    }
    [3]=>
    array(1) {
      [0]=>
      int(2464)
    }
    [4]=>
    array(1) {
      [0]=>
      int(6)
    }
    [5]=>
    array(1) {
      [0]=>
      int(7)
    }
    [6]=>
    array(1) {
      [0]=>
      int(8)
    }
  }
  [1]=>
  array(7) {
    [0]=>
    array(1) {
      [0]=>
      string(7) "CLASSIC"
    }
    [1]=>
    array(1) {
      [0]=>
      string(4) "NONE"
    }
    [2]=>
    array(1) {
      [0]=>
      bool(true)
    }
    [3]=>
    array(1) {
      [0]=>
      int(1771)
    }
    [4]=>
    array(1) {
      [0]=>
      int(5)
    }
    [5]=>
    array(1) {
      [0]=>
      int(8)
    }
    [6]=>
    array(1) {
      [0]=>
      int(4)
    }
  }
  [2]=>
  array(7) {
    [0]=>
    array(1) {
      [0]=>
      string(7) "CLASSIC"
    }
    [1]=>
    array(1) {
      [0]=>
      string(4) "NONE"
    }
    [2]=>
    array(1) {
      [0]=>
      bool(true)
    }
    [3]=>
    array(1) {
      [0]=>
      int(1614)
    }
    [4]=>
    array(1) {
      [0]=>
      int(2)
    }
    [5]=>
    array(1) {
      [0]=>
      int(7)
    }
    [6]=>
    array(1) {
      [0]=>
      int(4)
    }
  }
  [3]=>
  array(7) {
    [0]=>
    array(1) {
      [0]=>
      string(7) "CLASSIC"
    }
    [1]=>
    array(1) {
      [0]=>
      string(4) "NONE"
    }
    [2]=>
    array(1) {
      [0]=>
      bool(true)
    }
    [3]=>
    array(1) {
      [0]=>
      int(2939)
    }
    [4]=>
    array(1) {
      [0]=>
      int(12)
    }
    [5]=>
    array(1) {
      [0]=>
      int(7)
    }
    [6]=>
    array(1) {
      [0]=>
      int(3)
    }
  }
  [4]=>
  array(7) {
    [0]=>
    array(1) {
      [0]=>
      string(7) "CLASSIC"
    }
    [1]=>
    array(1) {
      [0]=>
      string(4) "NONE"
    }
    [2]=>
    array(1) {
      [0]=>
      bool(false)
    }
    [3]=>
    array(1) {
      [0]=>
      int(2405)
    }
    [4]=>
    array(1) {
      [0]=>
      int(13)
    }
    [5]=>
    array(1) {
      [0]=>
      int(4)
    }
    [6]=>
    array(1) {
      [0]=>
      int(5)
    }
  }
  [5]=>
  array(7) {
    [0]=>
    array(1) {
      [0]=>
      string(7) "CLASSIC"
    }
    [1]=>
    array(1) {
      [0]=>
      string(6) "NORMAL"
    }
    [2]=>
    array(1) {
      [0]=>
      bool(false)
    }
    [3]=>
    array(1) {
      [0]=>
      int(1274)
    }
    [4]=>
    array(1) {
      [0]=>
      int(2)
    }
    [5]=>
    array(1) {
      [0]=>
      int(1)
    }
    [6]=>
    array(1) {
      [0]=>
      int(6)
    }
  }
  [6]=>
  array(7) {
    [0]=>
    array(1) {
      [0]=>
      string(7) "CLASSIC"
    }
    [1]=>
    array(1) {
      [0]=>
      string(15) "RANKED_SOLO_5x5"
    }
    [2]=>
    array(1) {
      [0]=>
      bool(false)
    }
    [3]=>
    array(1) {
      [0]=>
      int(2379)
    }
    [4]=>
    array(1) {
      [0]=>
      int(2)
    }
    [5]=>
    array(1) {
      [0]=>
      int(14)
    }
    [6]=>
    array(1) {
      [0]=>
      int(7)
    }
  }
  [7]=>
  array(7) {
    [0]=>
    array(1) {
      [0]=>
      string(7) "CLASSIC"
    }
    [1]=>
    array(1) {
      [0]=>
      string(15) "RANKED_SOLO_5x5"
    }
    [2]=>
    array(1) {
      [0]=>
      bool(true)
    }
    [3]=>
    array(1) {
      [0]=>
      int(2620)
    }
    [4]=>
    array(1) {
      [0]=>
      int(8)
    }
    [5]=>
    array(1) {
      [0]=>
      int(15)
    }
    [6]=>
    array(1) {
      [0]=>
      int(7)
    }
  }
  [8]=>
  array(7) {
    [0]=>
    array(1) {
      [0]=>
      string(7) "CLASSIC"
    }
    [1]=>
    array(1) {
      [0]=>
      string(15) "RANKED_SOLO_5x5"
    }
    [2]=>
    array(1) {
      [0]=>
      bool(false)
    }
    [3]=>
    array(1) {
      [0]=>
      int(1781)
    }
    [4]=>
    array(1) {
      [0]=>
      int(6)
    }
    [5]=>
    array(1) {
      [0]=>
      int(5)
    }
    [6]=>
    array(1) {
      [0]=>
      int(9)
    }
  }
  [9]=>
  array(7) {
    [0]=>
    array(1) {
      [0]=>
      string(4) "ARAM"
    }
    [1]=>
    array(1) {
      [0]=>
      string(17) "ARAM_UNRANKED_5x5"
    }
    [2]=>
    array(1) {
      [0]=>
      bool(true)
    }
    [3]=>
    array(1) {
      [0]=>
      int(1466)
    }
    [4]=>
    array(1) {
      [0]=>
      int(11)
    }
    [5]=>
    array(1) {
      [0]=>
      int(29)
    }
    [6]=>
    array(1) {
      [0]=>
      int(2)
    }
  }
}