Do you want to make use of packages? There's: https://github.com/vlucas/phpdotenv which already does that for you or you can read the source code and see what they're doing
May 13, 2022
14
Level 1
how can i crate .env file in php thorugh coding without using any package
how can i create .env file in core php and then write the data to the env variables coming in request from the form.
Please or to participate in this conversation.