<?php $i = 1;
$range = range(0,10);
foreach($range as $range1){
$rangenew = $i++ ;
if ($rangenew % 2 == 0) {
echo $rangenew."It's even".'</br>';
}
else{
echo $rangenew."It's odd".'</br>';
}
}
?>
$range = range(0,10);
foreach($range as $range1){
$rangenew = $i++ ;
if ($rangenew % 2 == 0) {
echo $rangenew."It's even".'</br>';
}
else{
echo $rangenew."It's odd".'</br>';
}
}
?>
No comments:
Post a Comment