PHP
How to parse a .env file with PHP
Parsing a .env (dotenv) file in PHP can be done by using a dedicated library or writing a simple custom…
3 Ways to Access Linux ENV Variables from PHP
Accessing environment variables in PHP on a Linux system can be done in several ways, depending on your specific requirements…
How to write an array to an .env file using PHP
In this short guide, I will show you how to write a PHP function that takes an associative array of…
How to Indent Lines in a File using PHP
Indenting lines in a file using PHP code is quite easy. The steps are: Open the file and read its…
Is PHP list() function deprecated in 2023?
At the time of writing this in December 2023, the list() function in PHP is not deprecated. This function is…