View Single Post
Old 01-20-2008, 12:33 AM   #1 (permalink)
sarmenhb
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Big Grin lol, i made a never ending loop with arrays

i was playing around with arrays when i stumbled upon this lol

<?php

function br($num) {
for ($i=0; $i < $num;$i++) { echo "<br />"; }
}


//arrays

$fruits = array('apple','orange','banana','kiwi','plamgranit e');

while(list($key,$value) = each($fruits))

{
echo "Current:::::".br(1).current($fruits);
echo "[$key]:$value".br(1);
echo "Previous:::::".br(1).prev($fruits);

}


?>
__________________
no signature set
sarmenhb is offline  
Reply With Quote