Print array with alternate colour in PHP
<p>I have an array,</p>

<pre><code>$arr = arrary("Pune","Nashik","Mumbai");
</code></pre>

<p>I want to display <code>Pune</code> in red colour, then on the next line <code>Nashik</code> will be blue and the last line will have <code>Mumbai</code> in green. How do I do this using a "<strong>while loop</strong>".</p>

<p>Like,</p>

<pre><code>Pune (in red) 
Nashik (in blue) 
Mumbai (in green)
</code></pre>
