cross referenced tables from multi-dimensional arrays php?

Posted by significance on Stack Overflow See other posts from Stack Overflow or by significance
Published on 2010-03-17T11:06:59Z Indexed on 2010/03/17 11:11 UTC
Read the original article Hit count: 270

Filed under:
|
|

how do it turn a multidimensional array like:

$fruits['apples']['blue'] = 24;
$fruits['bananas']['blue'] = 12;
$fruits['apple']['red'] = 34;
$fruits['gooseberries']['orange'] = 4;
$fruits['oranges']['red'] = 12;

into a cross referenced table like:

alt text

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about multidimensional-array