Home > php教程 > php手册 > 函数

函数

WBOY
Release: 2016-06-13 11:16:07
Original
851 people have browsed it

  一个function(函数)可以使用如下语法来定义
function foo ($arg_1, $arg_2, ..., $arg_n) {
echo "Example function.";
return $retval;
}
任何有效的PHP代码可以出现在function(函数)中,即使是其它的函数或类定义.
Function必须在他们被引用之前定义.

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template