Are there any best practices for setting up environment variables for PHP execution on a computer?

When setting up environment variables for PHP execution on a computer, it is best practice to use a configuration file like `php.ini` to define these variables. This allows for easy management and customization of the environment variables specific to PHP. By using the `putenv()` function in PHP, you can set environment variables programmatically within your PHP scripts.

// Set environment variable using putenv()
putenv('ENV_VAR_NAME=variable_value');

// Get the value of the environment variable
$envVarValue = getenv('ENV_VAR_NAME');
echo $envVarValue;