Skip to content

Commit 9201517

Browse files
committed
Updated README.md
1 parent aad86df commit 9201517

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

README.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,90 @@ $backup->compress = true;
115115

116116
[More info](https://github.com/Chak10/Backup_SQL-PHP-ByChak10/blob/master/benchmark/bench_size_exec.md)
117117

118+
### $_ext_ (_String or Array_)
119+
120+
**NEW VERSION >= V1.0.7**
121+
122+
The extension of the destination file.
123+
124+
- SQL extension
125+
126+
``` php
127+
$backup->ext = "sql";
128+
129+
// or
130+
131+
$backup->ext = "SQL";
132+
133+
// or
134+
135+
$backup->ext = array("sql");
136+
137+
// or
138+
139+
$backup->ext = array("SQL");
140+
```
141+
- CSV extension
142+
143+
``` php
144+
$backup->ext = "csv";
145+
```
146+
and other ... (Look SQL)
147+
148+
- JSON extension
149+
150+
``` php
151+
$backup->ext = "json";
152+
```
153+
and other ... (Look SQL)
154+
155+
#### Combinations
156+
157+
- SQL + CSV
158+
159+
``` php
160+
$backup->ext = "sql,csv"; // Only the comma as a separator. !!!
161+
162+
// or
163+
164+
$backup->ext = array("sql","csv");
165+
```
166+
**Same for JSON and CSV or JSON and SQL**
167+
168+
**_For all three formats_**
169+
170+
- SQL + CSV + JSON
171+
172+
``` php
173+
$backup->ext = "all";
174+
175+
// or
176+
177+
$backup->ext = array("all");
178+
179+
// or
180+
181+
$backup->ext = "sql,csv,json"; // Only the comma as a separator. !!!
182+
183+
// or
184+
185+
$backup->ext = array("sql","csv","json");
186+
```
187+
> NOTE: If you use the CSV extension, if you want you can add the field delimiter and the enclosure of the camps.
188+
By default they are:
189+
- Delimiter => ,
190+
- Enclosure => "
191+
192+
>Example: "Data","DATA2","datA3"
193+
194+
``` php
195+
$backup->del_csv=";";
196+
$backup->enc_csv="'";
197+
```
118198
### $_ext_ (_Int_)
119199

200+
**OLD VERSION < V1.0.7**
201+
120202
The extension of the destination file.
121203

122204
``` php

0 commit comments

Comments
 (0)