Array Simplification
| From: | jwulff | Date: | Tue, 22 Jul 2003 22:57:49 +0000 |
| Subject: | Array Simplification | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-156352@lists.php.net to get a copy of this message | ||
I've got a nested array below that I'm having some trouble simplyfing.
Here is an example of how the array is now:
Array
(
[0] => Array
(
[0] => 2003-06-10 17:00:00
[1] => 9054.89
)
[1] => Array
(
[0] => 2003-06-10 17:00:00
[1] => 153.84
)
)
As you can see the dates are redundant, I'd really like nested array's with
the same date combined as follows.
Array
(
[0] => Array
(
[0] => 2003-06-10 17:00:00
[1] => 9054.89
[2] => 153.84
)
)
Thanks!