4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

Programación [Extracción de Datos de un Excel] [PHP]

Si eres de esa persona que quiere aprender a programar en aplicaciones Web
Aqui les traigo codigo sencillo para extraccion de datos de un archivo Excel mediante lenguaje de programacion PHP

php_elephant.png

CODIGO :


$archivo = "../Vista/Excel/excel.xls";
inputFileType=PHPExcelIOFactory::identify(inputFileType = PHPExcel_IOFactory::identify(archivo);
objReader=PHPExcelIOFactory::createReader(objReader = PHPExcel_IOFactory::createReader(inputFileType);
objPHPExcel2=objPHPExcel2 =objReader->load($archivo);
sheet=sheet =objPHPExcel2->getSheet(0);
highestRow=highestRow =sheet->getHighestRow();
highestColumn=highestColumn =sheet->getHighestColumn();


        for (row=1;row = 1 ;row <= highestRow;highestRow;row++){ 

                   cedula=cedula =sheet->getCell("A".$row)->getValue();
                   nombre=nombre =sheet->getCell("B".$row)->getValue();
                   monto=monto =sheet->getCell("C".$row)->getValue();
105 upvotes $0.02

Replies (1)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: