Unable to read environment variables
问题 I have a simple Symfony project, using "symfony/dotenv": "4.3.*", in the composer.json and trying to read in the value of an environment variable. This is my command: var_dump($_ENV['MY_NEW_VAR']); This is my .env file MY_NEW_VAR=testing Upon executing the command I get the following string(7) "testing" All good so far.... But now if I want to use environment variables to override the setting it returns an error. First I set the environment variable export MY_NEW_VAR="something_else" Then