PHP Function to know the next value of loop?
<p>Let's say I have this foreach loop:</p>

<pre><code>foreach ($lists as $list) {
    if (next list item == "test") {
         echo "the next $list item equals 'test'";
    }
}
</code></pre>

<p>I hope you get what i'm aiming at from the code.</p>

<p>Thanks,</p>
