Codesnipp.it Social Code Sharing

Andrew Champ

Simple Array

by Andrew Champ on Jun 02, 2010

Example Shows how to use it for random images: &lt;?php $randomMonkey = array("1.png", "2.png", "3.png"); ?&gt; <img src="&lt;?php echo $randomMonkey[rand(0,2)]; ?&gt;" alt="" />

Can't see the comments? Please login first :)