Guest User

Untitled

a guest
Dec 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. for ($z = 0; $z < 25; $z++){
  2. $currentKeyValues[] = $json[data][$z][values][0];
  3.  
  4. if ($z % 12 == 0 and $z != 0) {
  5. $currentKeyName[] = $json[data][$z][key][0];
  6. $currentKeyNameString = $currentKeyName[0];
  7. ${"cityID$currentKeyNameString"} = array_merge(array($currentKeyName,
  8. $currentKeyValues));
  9. }
  10. }
  11.  
  12. [
  13. {
  14. 0: {
  15. 0: "0114",
  16. 1: "0115"
  17. },
  18. 1: {
  19. 0: "91.4",
  20. 1: "92.4",
  21. 2: "91.0",
  22. 3: "92.0",
  23. 4: "89.6",
  24. 5: "85.4",
  25. 6: "86.8",
  26. 7: "86.4",
  27. 8: "80.1",
  28. 9: "79.1",
  29. 10: "80.2",
  30. 11: "83.2",
  31. 12: "84.1",
  32. 13: "93.3",
  33. 14: "94.2",
  34. 15: "92.4",
  35. 16: "92.9",
  36. 17: "91.8",
  37. 18: "87.5",
  38. 19: "89.3",
  39. 20: "89.0",
  40. 21: "83.6",
  41. 22: "82.8",
  42. 23: "85.9",
  43. 24: "87.6"
  44. }
  45. }
  46. ]
  47.  
  48. [
  49. {
  50. 0: {
  51. 0: "0114"
  52. },
  53. 1: {
  54. 0: "91.4",
  55. 1: "92.4",
  56. 2: "91.0",
  57. 3: "92.0",
  58. 4: "89.6",
  59. 5: "85.4",
  60. 6: "86.8",
  61. 7: "86.4",
  62. 8: "80.1",
  63. 9: "79.1",
  64. 10: "80.2",
  65. 11: "83.2",
  66. 12: "84.1"
  67. }
  68. }
  69. ]
Add Comment
Please, Sign In to add comment