函数_PHP

WBOY
Release: 2016-06-01 12:39:42
Original
767 people have browsed it

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

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

echo "Example function.\n";

return $retval;

}

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

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

Related labels:
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template