Jump to content

a multi dimensional array with for each


jarv

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.