⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 18-1.php3

📁 linux操作系统中 php 核心编程所有例程 都是一些很不错的案例
💻 PHP3
字号:
<HTML>
<HEAD>
<TITLE>Figure 18-1</TITLE>
</HEAD>
<BODY>
<?
	function PrintTitle($title)
	{
		print("<CENTER>");
		print("<FONT COLOR=\"#0000FF\" SIZE=\"7\">");
		print("<B>");
		print(strtoupper($title));
		print("</B>");
		print("</FONT>");
		print("</CENTER>\n");
	}
?>


<HTML>
<HEAD>
<TITLE>Figure 18-1</TITLE>
</HEAD>

<BODY>
<? PrintTitle("Figure 18-1"); ?>
This is an example of using a function to repeat 
a commonly-used piece of HTML code.<BR>
<BR>
<? PrintTitle("how it works"); ?>
Any time a title needs to be created, the <CODE>PrintTitle</CODE>
function is called with the text of the title.<BR>
<BR>
<? PrintTitle("advantages"); ?>
The code is more readable<BR>
Less text to type for each title<BR>
Easy to change every title<BR>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -