Iterate through an array using foreach in php
<p>Does the following code work in php4</p>

<pre><code>foreach ($array as $i =&gt; $values) {
    print "$i {\n";
    foreach ($values as $key =&gt; $value) {
        print "    $key =&gt; $value\n";
    }
    print "}\n";
}
</code></pre>

<p>This works with php5 but the same loop with no changes does not work with the version 4.
The foreach iterates through the loop but the values are not displayed.
Could someone help me with this</p>
