a multi dimensional array with for each


Posted on 16th Feb 2014 07:03 pm by admin

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:

Code: $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

No comments posted yet

Your Answer:

Login to answer
239 Like 42 Dislike
Previous forums Next forums
Other forums

File upload issues
Hi Guys,

Can anyone see any issues with this code:
Code: [Select]$setImage= 'productimages

insert mysql embeded videos as blobs?
Using TinyMCE my client will be able to embed images and flash videos into large columns of text whi

LSB (PHP 5.3) problem with static value!
hello,

i'm having a problem. static::$text variable gets lost at some point. can someone plea

xml element exists
Code: [Select]<?xml version="1.0"?>
<Addresses>
<

Database 'Validation'
Hi everyone,
I'm trying to validate the password entered by the user with the password in the dat

Unique Visitor Tracking
Hello. Currently, I run a voting site where voters are tracked by their IP address and can only vote

How to assign JS screen.width to ASP.Net variable
I've got this ASP.net routine that gets the cookie value of the screen width, but now I need to chan

Ten Operator Syntax
Hi Guys,

I can't figure out why i am getting a parse error with this basic ten op code:

why does my session end?
my connect.php starts the session just so you know
i can navigate arround my site fine except whe

Line break?
Hi, I'm new to the forum and new to php. I'm not sure if I'm using the correct terminology so here i

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash