扩大
缩小
摘要: $file = fopen($filePath,"r"); while(!feof($file)) { $playerData[] = (fgetcsv($file)); } fclose($file); 阅读全文
posted @ 2017-11-06 09:08 悟空聊架构 阅读(1828) 评论(0) 推荐(0) 编辑
摘要: $lines = array_map('str_getcsv', file($filePath));; $result = array(); $headers = null; if (count($lines) > 0) { $headers = $lines[0]; } for($i=1; $i<count($lines); $i++) { $obj = $line... 阅读全文
posted @ 2017-11-06 09:07 悟空聊架构 阅读(1428) 评论(0) 推荐(0) 编辑
Copyright ©2019 悟空聊架构