I have a php file named config.php in which I defined the application settings in an array format like
<?php
return array(
'user' => 'jaison',
'email' => '[email protected]',
);
?>
Inside the main app files I need to get the array to a variable, so that they can be used like this.
<?php
$settings = include 'config.php';
?>
I would like to know if there is there any alternative method to do like this instead of using include.