title: When are quotes needed in .env file?
body: <p>For instance, <a href="https://symfony.com/doc/current/configuration.html#configuring-environment-variables-in-env-files" rel="nofollow noreferrer">Symfony's configuring-environment-variables-in-env-files documents</a> provides examples:</p>
  <pre><code>DATABASE_URL=&quot;mysql://db_user:db_password@127.0.0.1:3306/db_name&quot;
  DB_USER=root
  </code></pre>
  <p>Why are quotes (aka parentheses) used for the first example and not the second?</p>
  <p>If the applicable answer is dependent upon the application parsing the .env file, please base it on Symfony.</p>