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

Php script to read msword file
hi,

I need to read a msword file and i want to print the contents in that word file.

i

Help with forum quoting?
Hi im working on a forum and I have alomost finished it but i want a user quote system like twitter

finding key position of specified value in multi-dimensional array
Code: $openedfile = fopen($tfc_file4, "r");
$rc = 1;
while(!feof($openedfile))
{<

query help
Hi experts.

i have a table rep2 like this
PROD_COD ACCT_NO DUE_DAYS BALANCE

Map.php
I am a complete beginner to PHP and am looking for some help with a program I am messing around with

IP Based Cron Jobs
I run cronjobs on my website. After one of my visitors got curious and tinkered around he realized h

include function being weird?
I have a very simple system to grab an IP outputted by a PHP file.. (for a project I have) but it ou

php problem?
I don't think I'm stupid, but maybe I am.

I am working on a sit for a friend I am try to put

Creating XML with php
I need to creat an XML with php and have successfully produced a valid output.
The problem I hav

Question about GD library
I am trying to make an image that shows a random quote from my database.


However I want t

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