1 | <?php |
||
8 | class PHPExcelHelper |
||
9 | { |
||
10 | /** |
||
11 | * @link http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP010073849.aspx |
||
12 | * XFE1048577 |
||
13 | */ |
||
14 | const EXCEL_MAX_ROW = 1048576; |
||
15 | const EXCEL_MAX_RANGE = 2147483647; |
||
16 | const EXCEL_MAX_COL = 16384; |
||
17 | |||
18 | /** |
||
19 | * @param string $dateInput |
||
20 | * |
||
21 | * @return mixed |
||
22 | */ |
||
23 | public static function convertDateTime($dateInput) |
||
61 | |||
62 | /** |
||
63 | * @param $val |
||
64 | * |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public static function xmlspecialchars($val) |
||
71 | |||
72 | /** |
||
73 | * @param int $rowNumber |
||
74 | * @param int $columnNumber |
||
75 | * |
||
76 | * @return string Cell label/coordinates (A1, C3, AA42) |
||
77 | */ |
||
78 | public static function xlsCell($rowNumber, $columnNumber) |
||
87 | |||
88 | /** |
||
89 | * @link https://msdn.microsoft.com/ru-RU/library/aa365247%28VS.85%29.aspx |
||
90 | * |
||
91 | * @param string $filename |
||
92 | * |
||
93 | * @return mixed |
||
94 | */ |
||
95 | public static function checkFilename($filename) |
||
104 | } |
||
105 |
This checks looks for assignemnts to variables using the
list(...)
function, where not all assigned variables are subsequently used.Consider the following code example.
Only the variables
$a
and$c
are used. There was no need to assign$b
.Instead, the list call could have been.