how do i write Foreach loop for this array in php
<pre><code>Array
(
    [0] =&gt; Array
        (
            [username] =&gt; CCAdmin
            [password] =&gt; CCAdmin1
            [ip] =&gt; XX.XX.XX.XX
        )

[1] =&gt; Array
    (
        [username] =&gt; admin
        [password] =&gt; admin
        [ip] =&gt; XX.XX.XX.XX
    )

[2] =&gt; Array
    (
        [username] =&gt; aplayer
        [password] =&gt; aplayer
        [ip] =&gt; XX.XX.XX.XX
    )
</code></pre>

<p>)</p>
