I want to create a config file for my PHP project, but I\'m not sure what the best way to do this is.
I have 3 ideas so far.
1-Use Variable<
One simple but elegant way is to create a config.php file (or whatever you call it) that just returns an array:
config.php
'localhost', 'username' => 'root', );
And then:
$configs = include('config.php');