Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHPExcel] Import danych z pliku
maniek74
post
Post #1





Grupa: Zarejestrowani
Postów: 127
Pomógł: 0
Dołączył: 26.08.2013

Ostrzeżenie: (0%)
-----


Witam
W pliku Excel mam kolumnę 5,00 zł, przy imporcie otrzymuje $ 5.00. Jak można zrobić żeby otrzymać samo 5?
  1. <?php
  2. include '../class/PHPExcel/IOFactory.php';
  3. $inputFileName = '../Zeszyt1.xlsx';
  4. $objPHPExcel = PHPExcel_IOFactory::load($inputFileName);
  5. $allDataInSheet = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
  6. $arrayCount = count($allDataInSheet);
  7. print '<table border="1">';
  8. for($i=3;$i<=$arrayCount;$i++){
  9. $collectName = $allDataInSheet[$i]["A"];
  10. $collectDateEnd = $allDataInSheet[$i]["B"];
  11. $collectLocation = $allDataInSheet[$i]["C"];
  12. $collectPrice = $allDataInSheet[$i]["D"];
  13. $collectEmail = $allDataInSheet[$i]["E"];
  14. $collectDate = $allDataInSheet[$i]["F"];
  15.  
  16. print '<tr>';
  17. print '<td>'.$collectName.'</td>';
  18. print '<td>'.$collectDateEnd.'</td>';
  19. print '<td>'.$collectLocation.'</td>';
  20. print '<td>'.$collectPrice.'</td>';
  21. print '<td>'.$collectEmail.'</td>';
  22. print '<td>'.$collectDate.'</td>';
  23. print '</tr>';
  24. }
  25. print '</table>';
  26. ?>


Pozdrawiam
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 8.10.2025 - 19:58