You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-46Lines changed: 49 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,52 +17,55 @@ Usage
17
17
=================
18
18
19
19
```php
20
-
require_once('../PHPExcelFormatter.php');
21
-
22
-
try
23
-
{
24
-
// Load file
25
-
$formatter = new PHPExcelFormatter('example1.xls');
26
-
27
-
// Output columns array (document must have column names on first row)
28
-
$formatterColumns = array(
29
-
'username' => 'username',
30
-
'phone' => 'phone_no',
31
-
'email' => 'email_address'
32
-
);
33
-
34
-
// Output columns array (document dosen't have column names on first row)
35
-
// Skip foruth column (age) (third in array), because we don't need that data
36
-
// NOTE: if document dosen't have column names on first line, second parameter for PHPExcelFormatter should be $readColumns = false, otherwise it will skip first line of data
$formatter = new PHPExcelFormatter('example1.xls');
27
+
28
+
// Output columns array (document must have column names on first row)
29
+
$formatterColumns = array(
30
+
'username' => 'username',
31
+
'phone' => 'phone_no',
32
+
'email' => 'email_address'
33
+
);
34
+
35
+
// Output columns array (document dosen't have column names on first row)
36
+
// Skip foruth column (age) (third in array), because we don't need that data
37
+
// NOTE: if document dosen't have column names on first line, second parameter for PHPExcelFormatter should be $readColumns = false, otherwise it will skip first line of data
0 commit comments