函数_PHP

WBOY
WBOYOriginal
2016-06-01 12:39:42789browse

一个function(函数)可以使用如下语法来定义

function foo ($arg_1, $arg_2, ..., $arg_n) {

echo "Example function.\n";

return $retval;

}

任何有效的PHP代码可以出现在function(函数)中,即使是其它的函数或类定义.

Function必须在他们被引用之前定义.

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
Previous article:从HTML中脱离_PHPNext article:语句的脱离方法_PHP