Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for ($z = 0; $z < 25; $z++){
- $currentKeyValues[] = $json[data][$z][values][0];
- if ($z % 12 == 0 and $z != 0) {
- $currentKeyName[] = $json[data][$z][key][0];
- $currentKeyNameString = $currentKeyName[0];
- ${"cityID$currentKeyNameString"} = array_merge(array($currentKeyName,
- $currentKeyValues));
- }
- }
- [
- {
- 0: {
- 0: "0114",
- 1: "0115"
- },
- 1: {
- 0: "91.4",
- 1: "92.4",
- 2: "91.0",
- 3: "92.0",
- 4: "89.6",
- 5: "85.4",
- 6: "86.8",
- 7: "86.4",
- 8: "80.1",
- 9: "79.1",
- 10: "80.2",
- 11: "83.2",
- 12: "84.1",
- 13: "93.3",
- 14: "94.2",
- 15: "92.4",
- 16: "92.9",
- 17: "91.8",
- 18: "87.5",
- 19: "89.3",
- 20: "89.0",
- 21: "83.6",
- 22: "82.8",
- 23: "85.9",
- 24: "87.6"
- }
- }
- ]
- [
- {
- 0: {
- 0: "0114"
- },
- 1: {
- 0: "91.4",
- 1: "92.4",
- 2: "91.0",
- 3: "92.0",
- 4: "89.6",
- 5: "85.4",
- 6: "86.8",
- 7: "86.4",
- 8: "80.1",
- 9: "79.1",
- 10: "80.2",
- 11: "83.2",
- 12: "84.1"
- }
- }
- ]
Add Comment
Please, Sign In to add comment