jarv Posted November 23, 2009 Share Posted November 23, 2009 hi, I have been asked to write an array, I have Zone 2,3,4,5,6,7,8 each zone has 3 sections of weight, 0 = 70, 71 = 100, 101 = 150, each zone has an average number of say about 0.147 and a Base number of 4.85. I need to take the weight * the average and + the base inside a for each loop. so far I have: $ground = array(2 => array ( $arr[1][70](0.147,4.85); $arr[2][100](0.710,14.82); $arr[3][150]; I really need some help on this please? thanks Link to comment https://forums.phpfreaks.com/topic/182623-a-multi-dimensional-array-with-for-each/ Share on other sites More sharing options...
Adam Posted November 23, 2009 Share Posted November 23, 2009 Think you'll need to try to re-phrase that; makes no sense to me. Link to comment https://forums.phpfreaks.com/topic/182623-a-multi-dimensional-array-with-for-each/#findComment-963882 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.