Advertisement
Brandan

Untitled

Jul 21st, 2013
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.22 KB | None | 0 0
  1. //Parse error: syntax error, unexpected T_STRING in /home/brandanl/cad.brandanlasley.com/test/core/JOINTCAD_WA_CLACK.php on line 53
  2.  
  3. array_push($CAD911,'loc' . $CallIDM => array( 'info' => $cleantype . $cleancalldate . $cleancall . '|' . $cleanlocation . '|'  . $cleanunits, 'lat' => $latt, 'lng' => $long),);
  4.  
  5. //This is what i'm trying to do, one array with an array inside of it that has an array inside of it.
  6. $testLocs = array(
  7.     'loc1' => array( 'info' => '1. New Random info and new position', 'lat' => 0, 'lng' => 144.9634 ),
  8.     'loc2' => array( 'info' => '2. New Random info and new position', 'lat' => 0, 'lng' => 144.9634 ),
  9.     'loc3' => array( 'info' => '3. New Random info and new position', 'lat' => 0, 'lng' => 144.9634 ),
  10.     'loc4' => array( 'info' => '4. New Random info and new position', 'lat' => 0, 'lng' => 144.9634 ),
  11. );
  12. //However when the list is read line by line I cannot do this and i must add each one separately.
  13.  
  14.  
  15. //array(4) {
  16. //  ["loc1"]=>
  17. //  array(3) {
  18. //      ["info"]=>
  19. //      string(35) "1. New Random info and new position"
  20. //      ["lat"]=>
  21. //      int(0)
  22. //      ["lng"]=>
  23. //      float(144.9634)
  24. //  }
  25. //  ["loc2"]=>
  26. //  array(2) {
  27. //      ["lat"]=>
  28. //      int(0)
  29. //      ["lng"]=>
  30. //      float(14.5144)
  31. //  }
  32. //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement