Random Value Inside Looping
<pre><code>for($i = 1; $i &lt;= 5; $i++)
{
   echo $i . ',';
}
</code></pre>

<p>Produce:
    1,2,3,4,5</p>

<p>How to random the order of the result, like this:</p>

<pre><code>1,3,5,2,4 or 5,3,2,1,4 or 4,2,1,3,5 and so on..
</code></pre>

<p>1 upvote for the best answer. :-)</p>

<p>Thank you!</p>
