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.

Did you know?Explore Trending and Topic pages for more stories like this.
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

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

How to update this array?
I am saving a string that looks this: username1, username2, username3...
into a single cell in a

regex for quoted text within a string
I am still getting the hang of regex expressions, but I cant seem to figure out how I would escape q

Standard DES encryption script?
Can anybody point me to a tutorial or a short script that shows how to encrypt some text with salt i

Error in write byte array into document in SM58
Hi Gurus,

Getting the following error status in Transactional RFC (SM58) ..... *Error i

mysq_num_rows
Hi,

I want to use:

Code: if(mysql_num_rows($ergebnis2)==2)
how can the value 2, be

Filename and Line Number Custom Error
I have a class, with a method that accepts 2 parameters. I would like to output error messages.

unexpected T_STRING
error log "[Sat Jan 09 18:27:58 2010] [error] [client 127.0.0.1] PHP Parse error: syntax error

Transport data between itab and textfield on ALV event
Hallo,

I have a ALV Grid ( cl_gui_alv_grid ) and I also have hotspot click event with a h

A little help needed passing hidden values to next page
I have a page that has hidden values in a form.

example
Code: <input name='signupID

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