vlucas / phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
BSD 3-Clause "New" or "Revised" License
13.15k stars 626 forks source link

Can one use Heredoc syntax for multi-line strings? #565

Closed hardlynoticeable closed 8 months ago

hardlynoticeable commented 8 months ago

What's the best way to define multiline strings in my .env file?

hardlynoticeable commented 8 months ago

I realize I was trying too hard. I just needed to open a quote and close the quote on another line.

FOO=" first line second line "

This works fine.