Problem with long numbers

Topics: Developer Forum, Project Management Forum, User Forum
May 24, 2014 at 8:10 PM
Hello! First, I'm sorry for my english.
I have a xls file with numbers, I need show it for screen. This works, but no when these numbers are longer than 12 digits. In this case, they show like scientific notation. For example, the number 5289879564387 (13 digits) shown like 5.28987956439E+12

I need your help, please!

My code is:
<?php
//incluimos la clase
require_once 'php/ext/PHPExcel-1.7.7/Classes/PHPExcel/IOFactory.php';
                    
//cargamos el archivo que deseamos leer
$objPHPExcel = PHPExcel_IOFactory::load('xls/prueba.xls');
//obtenemos los datos de la hoja activa (la primera)
$objHoja=$objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
                    
//recorremos las filas obtenidas
foreach ($objHoja as $iIndice=>$objCelda) {
    //imprimimos el contenido de la celda utilizando la letra de cada columna
    echo '
        <tr>
            <td>'.$objCelda['A'].'</td>
            <td>'.$objCelda['B'].'</td>
            <td>'.$objCelda['D'].'</td>
            <td>'.$objCelda['E'].'</td>
        </tr>
        ';
}
?>
Thank you very much!