Hi,
I need to take action on the values shown in the picture below, but I couldn’t.
Şaft => Shaft, Cable space in the building
Fiber Optik => Fiber Optic Points Per Shaft
A Block uses 2 shafts, 4 optical points are requested per shaft
Total optical points of the A block 4x2 = 8 optical points
B Block uses 1 shafts, 4 optical points are requested per shaft
Total optical points of the 1 B block 4x1 = 4 optical points
I Block uses 2 shafts, 3 optical points are requested per shaft
Total optical points of the I block 3x2 = 6 optical points
How should I calculate the total number of optical points for all blocks?
Seems simple but I just couldn’t get the job done
Keys are the order of blocks
[number_of_shafts_in_the_block] => Array
(
[1] => 2
[2] => 1
[3] => 2
[4] => 2
[5] => 1
[6] => 2
[7] => 2
[8] => 1
[9] => 2
[10] => 2
)
[number_of_optics_per_shaft] => Array
(
[1] => 4
[2] => 4
[3] => 2
[4] => 4
[5] => 4
[6] => 1
[7] => 4
[8] => 4
[9] => 3
[10] => 4
)