Answer the question
In order to leave comments, you need to log in
I created a .env file in the root of the project, how can I make getenv return values from .env?
I created a .env file in the root of the project, how can I make getenv return values from .env?
I would like to solve the problem without additional libraries, such as Dotenv (or something like that).
Neither $_ENV['key'] nor getenv('key') currently work, meaning the methods don't return values.
Wednesday:
1. php 7.4
2. Windows 10
Later to run in docker.
Answer the question
In order to leave comments, you need to log in
Subsequently, to run in docker.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question