Skip to content

Commit e11d3e7

Browse files
authored
docs(readme): more examples [skip ci]
1 parent 638d662 commit e11d3e7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

readme.md

+21
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,27 @@ use Ahc\Env\Loader;
4141

4242
> Always wrap complex values within double quotes in `.env` file. Eg: `APP_KEY="K&^¢*&D(?<µ}^(P\]X"`
4343
44+
### ENV Format
45+
46+
Supports `#` or `;` comments and multilines. Literal double quote should be escaped like `\"`. See more examples below:
47+
48+
```
49+
# comment line
50+
a=1
51+
b="2"
52+
c=$3#
53+
; also comment line
54+
d="lol"
55+
e=
56+
f=\"6\"
57+
1_2=one_two
58+
E=""
59+
A_B=Apple Ball
60+
MUL="line 1
61+
line 2"
62+
x=Y
63+
```
64+
4465
### Retrieving
4566

4667
```php

0 commit comments

Comments
 (0)