How can I get the current index value of the foreach loop in php
<p>How should I get the current value of the array</p>

<pre><code> foreach ($key1 as $key =&gt; $value) {

                            }
</code></pre>

<p>Here, <code>$key</code> represent the current index of an array..
But how do I find the current value of the current index.
Please someone help me..</p>