title: How to get array defined in a php file to a variable
body: <p>I have a php file named config.php in which I defined the application settings in an array format like</p>
  
  <pre><code>&lt;?php
  
  return array(
   'user' =&gt; 'jaison',
   'email' =&gt; 'test@test.com',
  );
  
  ?&gt;
  </code></pre>
  
  <p>Inside the main app files I need to get the array to a variable, so that they can be used like this.</p>
  
  <pre><code>&lt;?php 
   $settings = include 'config.php';
  ?&gt;
  </code></pre>
  
  <p>I would like to know if there is there any alternative method to do like this instead of using include.</p>