Trouble accessing array return types
<p>I'm trying to access my array values by calling them from another script.</p>

<p>I construct an array from my <code>countryConfig.xml</code> file. <code>var_dump</code> confirms that the values have been added successfully. </p>

<p>countryConfig.php</p>

<pre><code>&lt;?php
$configFile = 'countryConfig.xml';

function getCountryConfig($configFile) {

    $xml = new SimpleXmlElement(file_get_contents("countryConfig.xml"));

    $countries = array();

    $countryId = (string)($xml-&gt;city[0]-&gt;id);
    array_push($countries, $countryId);
    $countryId = (string)($xml-&gt;city[1]-&gt;id);
    array_push($countries, $countryId);

//    var_dump($countries); 

    return array (
        $countryId[0],
        $countryId[1]
     ); 
}
?&gt;
</code></pre>

<p>index.php</p>

<pre><code>&lt;?php
require 'includes/countryConfig.php';

$pageContent = 'The countries are' . $countryId[0] . ' and ' . $countryId[1];
?&gt;
</code></pre>

<p>No results are displayed.  Any ideas where I'm going wrong?  I'm intending to print out the countries. </p>
