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

239 Like 42 Dislike
Previous php-forum Next php-forum
Other php-forum

how do i display data on a page from mysql
1 - do i use this code at the top of each of my page i wish to only alow access if there as been a s

PHP Code reffering to database, doing something wrong.. pls help
Well i am quite new with PHP
and for school we have to make a PHP script which reffers to a Data

FlashVar function how to insert variables
Hi guys. Im new in this forum and also new in php programming. Can you help me about this code?
<

Optimize Code
Just started getting into the use of cookies. The following code will redirect users to a set URL s

Code clarification
Hi

In the following code what could be the "search_print()" and where it could be

MVC - Code review
I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to impl

MySQL noob question
hi guys

I have a simple mysql table set up, along the lines of

Col 1 - Col 2 - Date_l

Retrieving innerHTML with cURL?
Hey all (sorry I know I'm a leecher, but I soon won't be. This is my first PHP project, but not my l

Re-Order by ID Number
I have a cms set up for inputting an image, thumb, title, pdf, and eps. When input the database ass

sql error
I have been looking at this code for 20mins and can't work out what I am doing wrong. There is somet

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