Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Parse error: syntax error, unexpected T_STRING in /home/brandanl/cad.brandanlasley.com/test/core/JOINTCAD_WA_CLACK.php on line 53
- array_push($CAD911,'loc' . $CallIDM => array( 'info' => $cleantype . $cleancalldate . $cleancall . '|' . $cleanlocation . '|' . $cleanunits, 'lat' => $latt, 'lng' => $long),);
- //This is what i'm trying to do, one array with an array inside of it that has an array inside of it.
- $testLocs = array(
- 'loc1' => array( 'info' => '1. New Random info and new position', 'lat' => 0, 'lng' => 144.9634 ),
- 'loc2' => array( 'info' => '2. New Random info and new position', 'lat' => 0, 'lng' => 144.9634 ),
- 'loc3' => array( 'info' => '3. New Random info and new position', 'lat' => 0, 'lng' => 144.9634 ),
- 'loc4' => array( 'info' => '4. New Random info and new position', 'lat' => 0, 'lng' => 144.9634 ),
- );
- //However when the list is read line by line I cannot do this and i must add each one separately.
- //array(4) {
- // ["loc1"]=>
- // array(3) {
- // ["info"]=>
- // string(35) "1. New Random info and new position"
- // ["lat"]=>
- // int(0)
- // ["lng"]=>
- // float(144.9634)
- // }
- // ["loc2"]=>
- // array(2) {
- // ["lat"]=>
- // int(0)
- // ["lng"]=>
- // float(14.5144)
- // }
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement