title: 21-04783-85013 outputs as 2.83544E+11 in my PHP array output (read from CSV)
body: <hr>
  
  <h2>EDIT: It was my error, I was looking at the wrong line in the CSV, this question no longer needs an answer.</h2>
  
  <p>As per title when I output my array I get funny numbers like 2.83544E+11 (when in this case it should have been 21-04783-85013.) I've tried looking this up an believe it could be something to do with the CSV encoding? with that in mind i tried <code>mb_convert_encoding($fileRow[20], 'Windows-1252', 'UTF-8'),</code> to no avail.</p>
  
  <p>Here is the complete code</p>
  
  <pre><code>function readCSV($csvFile)
  {
      $output = [];
      $fileHandle = fopen($csvFile, 'r');
      $header = fgetcsv($fileHandle);
      while (!feof($fileHandle)) {
          $fileRow = fgetcsv($fileHandle, 1024);
          $orderId = $fileRow[0];
          // skip this row if it's empty (the first field contains no id)
          if (empty($orderId)) {
              continue;
          }
          /*
            $fileRow[3] is "Buyer name", the first field that's present in one type of row
            (the one containing common properties of the order). By checking if it's empty,
            we identify the contents of the row - not empty means order row with common
            properties, empty means item row with specific item properties.
           */
          if (!empty($fileRow[3])) {
              // no need to repeat the id inside the array - it's already stored in the key
              $output[$orderId] = [
                  'order_number' =&gt; $fileRow[0],
                  'buyer_username' =&gt; $fileRow[2],
                  'buyer_name' =&gt; $fileRow[3],
                  // here you can continue explicitly adding any property you need
              ];
          } else {
              // add a new item entry
              $output[$orderId]['items'][] = [
                  'item_number' =&gt; $fileRow[20],
                  'item_title' =&gt; $fileRow[21],
                  'quantity' =&gt; $fileRow[24],
                  'price' =&gt; $fileRow[25],
                  // here you can continue explicitly adding any property you need
              ];
          }
      }
      fclose($fileHandle);
      return $output;
  }
      // Set path to CSV file
      $csvFile = 'tmp_csv_store/my.csv';
      $csv = readCSV($csvFile);
  
  echo "&lt;pre&gt;";
  print_r($csv);
  echo '&lt;/pre&gt;'; 
  </code></pre>
  
  <p>It seems to be this line <code>'item_number' =&gt; $fileRow[20],</code> i need to format? Suggestions if you would plase?</p>
  
  <p>EDIT to add..</p>
  
  <p>Output from php result..</p>
  
  <pre><code>[item_number] =&gt; 2.83544E+11
  </code></pre>
  
  <p>Output from result in question on CSV file (from notepad)</p>
  
  <pre><code>110393,21-04783-85013,wend,WENDY ,wendy@no-email.com,,10 ANY Road,Northfield,Birmingham,West Midlands,B11 1BB, //LINE CONTINUES (second item is the problem)
  </code></pre>
  
  <p>Expected output</p>
  
  <pre><code>[item_number] =&gt; 21-04783-85013
  </code></pre>