简单教程
提交运行
代码编辑器:
<!DOCTYPE html> <meta charset="UTF-8"/> <?php function writeName($fname,$punctuation) { echo $fname . " Refsnes" . $punctuation . "<br>"; } echo "My name is "; writeName("Kai Jim","."); echo "My sister's name is "; writeName("Hege","!"); echo "My brother's name is "; writeName("Ståle","?"); ?> <p>PHP 基础教程 - 简单教程(www.twle.cn)</p>
运行结果: