Arrays passed to functions lose their indexing - how to maintain?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,

I have an array that looks a little something like this:

Array ( [6] => 43.712608, -79.360092 [7] => 43.674088, -79.388557 [8]
=> 43.674088, -79.388557 [9] => 43.704666, -79.397873 [10] =>
43.674393, -79.372147 )

but after I pass it to a function, it loses it's indexing and becomes:

Array ( [0] => 43.712608, -79.360092 [1] => 43.674088, -79.388557 [2]
=> 43.674088, -79.388557 [3] => 43.704666, -79.397873 [4] =>
43.674393, -79.372147 )

The indexing is important and I'd like to hang onto it.  Any ideas?  "pointers"?

Marc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux