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

Form validation with functions
Hi there

I am trying to make a very simple form validation function. I currently have the fol

Shuffle between users ??
I have multiple $users in table. I need to send them $message.

I need to send the next messag

Strange Oracle Query problem
Ok So I have this PHP class that talks to a Javascript class that basically creates a table of infor

Connecion issue
Hi,

For some reason, I keep getting this error when trying to connect:

Warning: mysql_

Passing JS to PHP
So I have the following
Code: <?php
getdetails(?><script type="text/

onclick problem
I have <input type="text" name="message">
<a href=page2.

date("now") prints out wrong date ?
Hi Guys
Anyone know why and how I can fix it ?

disable all input buttons
Hello Friends,

suppose i do have a file ( file.php ) has a submit button

Code: [Sele

Count on multidimensional array
Hi, i got an array as below:

Array
(
=> Array
(

Multiple WHILE loops help
Hi there. I'm writing an application that is pulling and displaying results for real estate listing

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