foreach ($vbulletin->stylecache AS $parentid => $parentstyles) { foreach ($parentstyles AS $displayorder => $styles) { foreach ($styles AS $idx => $selstyle) { $stylecache["$selstyle[styleid]"] =& $vbulletin->stylecache["$parentid"]["$displayorder"]["$idx"]; } } }