Home > Backend Development > PHP Tutorial > 为什么php手册中好多函数参数后面都有半个中括号?这些括号有什么意义昵?

为什么php手册中好多函数参数后面都有半个中括号?这些括号有什么意义昵?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:25:56
Original
1784 people have browsed it

为什么php手册中好多函数参数后面都有半个中括号?这些括号有什么意义昵?
一直有这个疑问,google,百度都没有答案,不知道有没有人可以给个解答。
感谢

回复内容:

为什么php手册中好多函数参数后面都有半个中括号?这些括号有什么意义昵?
一直有这个疑问,google,百度都没有答案,不知道有没有人可以给个解答。
感谢

<code class="php">array array_filter ( array $array [, callable $callback [, int $flag = 0 ]] )</code>
Copy after login

你指 $callback$flag 这两个参数的中括号的话,表示这些是可选参数

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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template