groups

name language licence
Da Playia PHP Other



language: PHP
licence: Other

Da Playia

options: view full snippetsend to code collector
<?php
// Some variables to work inside the foreach loop
$age = 21;
$number = 1;

// the all important array
$suffix = array('st','nd','rd');

// and then the loop
foreach($suffix as $suf){
       echo "My ".$number++.$suf." girlfriend is ".$age++." years old.<br/><br/>";
}
?>
	
(Continues...)