Advertisement
Brandan

Untitled

Jul 21st, 2013
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.42 KB | None | 0 0
  1. $temparray = array('loc' . $CallIDM => array( 'info' => $cleantype . $cleancalldate . $cleancall . '|' . $cleanlocation . '|'  . $cleanunits, 'lat' => $latt, 'lng' => $long),);
  2.  
  3. array_push($CAD911,$temparray);
  4.  
  5.  
  6. How this code works.
  7. //array(3) {
  8. //  [0]=>
  9. //  array(1) {
  10. //      ["loc"]=>
  11. //      array(3) {
  12. //          ["info"]=>
  13. //          string(45) "M130701849FALL|28553 S HWY 213| E81, E82, M81"
  14. //          ["lat"]=>
  15. //          object(SimpleXMLElement)#3 (1) {
  16. //          [0]=>
  17. //          string(16) "45.1935410809833"
  18. //      }
  19. //      ["lng"]=>
  20. //      object(SimpleXMLElement)#5 (1) {
  21. //          [0]=>
  22. //          string(17) "-122.585202110117"
  23. //      }
  24. //  }
  25. //}
  26. //[1]=>
  27. //array(1) {
  28. //  ["loc"]=>
  29. //      array(3) {
  30. //          ["info"]=>
  31. //          string(47) "F130703161MVA-UNK INJURY|I205 FY SB / 6 MP| E59"
  32. //          ["lat"]=>
  33. //          object(SimpleXMLElement)#4 (1) {
  34. //              [0]=>
  35. //              string(16) "45.3503685516538"
  36. //          }
  37. //          ["lng"]=>
  38. //          object(SimpleXMLElement)#28 (1) {
  39. //              [0]=>
  40. //              string(17) "-122.658678580274"
  41. //      }
  42. //  }
  43. //}
  44.  
  45. How it should work
  46. //array(4) {
  47. //      ["loc1"]=>
  48. //      array(3) {
  49. //              ["info"]=>
  50. //              string(35) "1. New Random info and new position"
  51. //              ["lat"]=>
  52. //              int(0)
  53. //              ["lng"]=>
  54. //              float(144.9634)
  55. //      }
  56. //      ["loc2"]=>
  57. //      array(2) {
  58. //              ["lat"]=>
  59. //              int(0)
  60. //              ["lng"]=>
  61. //              float(14.5144)
  62. //      }
  63. //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement