<?phpfunction msg(){echo("<center><h2>Displaying evennumbers</h2></center><p><p>");function displayeven(){ $ctr=0; echo("<font size=4>"); for($i=2;$i<=100;$i+=2) { echo("$i "); $ctr++; if($ctr%10==0) {echo("<p>"); } } echo("</font>");}}msg();displayeven();?>希望本文所述对大家的php程序设计有所帮助。