SyntaxFix
Write A Post
Hire A Developer
Questions
One simple but elegant way is to create a config.php file (or whatever you call it) that just returns an array:
config.php
<?php return array( 'host' => 'localhost', 'username' => 'root', );
And then:
$configs = include('config.php');