Home > Backend Development > PHP Tutorial > php excel reader 读取时间字段出错,哪位高手会弄得

php excel reader 读取时间字段出错,哪位高手会弄得

WBOY
Release: 2016-06-13 10:28:58
Original
736 people have browsed it

php excel reader 读取时间字段出错,谁会弄得
时间类型

9:20:00


读出来变成了

0.388888888889


谁会做????



------解决方案--------------------

PHP code
$row = 1;$handle = fopen("test.csv","r");while ($data = fgetcsv($handle, 1000, ",")) {    $num = count($data);    echo "<p> $num fields in line $row: <br>\n";    $row++;    for ($c=0; $c \n";    }}fclose($handle);#我用上面的代码获取#date#2011-4-21#的数据能正常获取#你的问题怎么解决的?</p><div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template