Posted by Ewoud Dronkert on 05/24/05 01:04
On 23 May 2005 14:32:32 -0700, Ben Hallert wrote:
> The two second level items are what I want to give
> to an array function.
You need to transpose the array:
foreach ( $a as $k1 => $v1 )
foreach ( $v1 as $k2 => $v2 )
$b[$k2][$k1] = $v2;
Then use $b['linesadded'].
--
Firefox Web Browser - Rediscover the web - http://getffox.com/
Thunderbird E-mail and Newsgroups - http://gettbird.com/
[Back to original message]
|