Home >Backend Development >PHP Tutorial >简单的函数_PHP

简单的函数_PHP

WBOY
WBOYOriginal
2016-06-01 12:30:291001browse



简单的函数




 function printBold($inputText)   //定义function printBold()
 {
  print("" . $inputText . ""); ////打印$inputText
 }
 print("这行没有加重!
\n");   //直接打印字符串
 printBold("这行加重了!!!");   //调用function printBold()函数
 print("
\n");
 print("这行没有加重!
\n");   //直接打印字符串
?>



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn