<?php
$animals = array('pig', 'chicken', 'cow', 'snake');
$i = 0;
while ($i < 10)
{
echo "<li>$animals[$i]</li>";
}
?>
I just wanna see the pig, chicken, cow and snake in list item.. but what happen is it just looping the word pig infinitely...