<font face="courier new, courier, mono" color="#0000ff" size="3"> <hr> <br><br><title>有默认参数的函数</title> <br><br><br><font size="5"><br><br> function printColored($Text, $Color="black") //定义function函数<br> {<br> print("<font color='\"$Color\"'>$Text</font>"); //获取字符串的内容和颜色<br> }<br> printColored("这是黑颜色的字!"); //调用function函数<br> print("<br><br>\n");<br> printColored("这是蓝颜色的字!", "blue"); //调用function函数<br> print("<br>\n");<br>?><br><br><br> <hr> <br><img alt="" hspace="0" src="http://img.bitscn.com/upimg/php/20070123/11E55123U4033306.jpg" align="baseline" border="0"></font> </font>