differece between for loops in Java and foreach loop in PHP
<p>In PHP we use....</p>

<pre><code>foreach ($array as $value) {
    echo $value;
}
</code></pre>

<p>In Java the same thing can be done using</p>

<pre><code>for (int e : array) {
    System.out.println(e);
}
</code></pre>

<p>is there any difference between the above 2 code segments</p>
