01-20-2008, 12:33 AM
|
#1 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
|
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
|
|
|
|