 <p>Well try this lines, after you store each line in an array...</p> <pre><code>$csv = array(); $file = fopen('source.csv', 'r'); while (($result = fgetcsv($file,0,";")) !== false) { $csv[] = $result; } fclose($file); function content_to_columns($data){ foreach ($data as $line=&gt;$value){ $data[$line]=explode(";",$value); } print_r[$data]; //comment when not needed. } content_to_columns($csv_file); // </code></pre> <p>then you can really get any value knowing the line and the columns number lets say your data is</p> <pre><code>A | B 10| 0 20|20 </code></pre> <p>$csv[0][0] is 10 </p> <p>Doing operational math with it is like:</p> <pre><code>$csv[0][0]*=5; //multiplies by 5 the cell value </code></pre>