question related to array
<p>I'm reading this format data from excel file. then I convert it into array. 
Now I want to perform calculation. I tried many times but no success. thanks</p>

<pre><code>example
L*M    100*200
L*H    100*300

 0           1      2
 UserData       
 Length 100      L
 Width  200       W
 Height 300      H
 AdminData      
 L*W    Result  
 L*H    Result  
 W*H    Result  
 Total  TotalRest   
</code></pre>

<p>Array result using print_r()</p>

<pre><code> Array
 (
   [0] =&gt; Array
    (
        [0] =&gt; UserData
        [1] =&gt; 
        [2] =&gt; 
    )

[1] =&gt; Array
    (
        [0] =&gt; Length
        [1] =&gt; 100
        [2] =&gt; L
    )

[2] =&gt; Array
    (
        [0] =&gt; Width
        [1] =&gt; 200
        [2] =&gt; W
    )

[3] =&gt; Array
    (
        [0] =&gt; Height
        [1] =&gt; 300
        [2] =&gt; H
    )

[4] =&gt; Array
    (
        [0] =&gt; AdminData
        [1] =&gt; 
        [2] =&gt; 
    )

[5] =&gt; Array
    (
        [0] =&gt; L*M
        [1] =&gt; 
        [2] =&gt; 
    )

[6] =&gt; Array
    (
        [0] =&gt; L*H
        [1] =&gt; 
        [2] =&gt; 
    )

[7] =&gt; Array
    (
        [0] =&gt; W*H
        [1] =&gt; 
        [2] =&gt; 
    )

[8] =&gt; Array
    (
        [0] =&gt; Total
        [1] =&gt; 
        [2] =&gt; 
    )
</code></pre>

<p>)</p>

<p>Array function</p>

<pre><code>$arrResult = array();

 /////////////Open the csv file which contains data//////////////

$handle = fopen("data.csv", "r");
if( $handle ) {
///////Put the data in an array///////////
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {      
$arrResult[] = $data;
}
fclose($handle);
}
</code></pre>
