在使用PHPExcel来进行数据导出时,常常需要防止有些数字(如手机号、身份证号)以科学计数法显示,我们可以采用下面的方式来解决:
setCellValueExplicit第三个参数用PHPExcel_Cell_DataType::TYPE_STRING
1
|
|
在使用PHPExcel来进行数据导出时,常常需要防止有些数字(如手机号、身份证号)以科学计数法显示,我们可以采用下面的方式来解决:
setCellValueExplicit第三个参数用PHPExcel_Cell_DataType::TYPE_STRING
1
|
|
http://www.lynnk.cn/post/49.html
https://github.com/mk-j/PHP_XLSXWriter
https://blog.csdn.net/qq_41049126/article/details/89532403
https://learnku.com/articles/43135
相比于PHPExcel,PHP_XLSXWriter是一个小而强悍的Excel读写插件,它并没有PHPExcel功能丰富,但是它导出速度非常快,非常适合于数据量特别大,报表格式不是很复杂的导出需求
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
https://www.cnblogs.com/woods1815/p/11372007.html
https://www.e-learn.cn/topic/3761556
由于PHPExcel已经不再维护,PhpSpreadsheet是PHPExcel的下一个版本。PhpSpreadsheet是一个用纯PHP编写的库,并引入了命名空间,PSR规范等。
1
|
|
GitHub下载: https://github.com/PHPOffice/PhpSpreadsheet
1 2 3 |
|
https://www.cnblogs.com/cyfblogs/p/10115541.html
https://blog.csdn.net/beyond__devil/article/details/53457849
http://www.thinkphp.cn/code/2143.html
https://blog.csdn.net/nizaiwoan/article/details/88635315
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
PHPExcel getCalculatedValue() 可能很慢,一次需要30ms。预先有python处理后就很快了
1 2 |
|
https://www.cnblogs.com/caesar-id/p/11802440.html#top
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|