Getting particular contents from an array using PHP?
<p>This is from drupal 7 settings.php file.</p>

<pre><code>$databases = array (
  'default' =&gt; 
  array (
    'default' =&gt; 
    array (
      'database' =&gt; 'drupal',
      'username' =&gt; 'user name will be saved here',
      'password' =&gt; 'password will be saved here',
      'host' =&gt; 'host name will be saved here',
      'port' =&gt; '',
      'driver' =&gt; 'mysql',
      'prefix' =&gt; '',
    ),
  ),
);
</code></pre>

<p>How can I get saved user name,password and host name from this array using PHP ?</p>
