Skip to content

Commit 29d511c

Browse files
committed
Add note about first-class callables to callable type and add link to the closure documentation page
php/doc-en@eac9eff
1 parent 5e62857 commit 29d511c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

language/types/callable.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: e587d0655e426f97b3fcb431453da5030e743b23 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: eac9eff7b66d8c2b168c25c72de0422126daf8cb Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55
<sect1 xml:id="language.types.callable">
66
<title>コールバック / Callable</title>
@@ -20,7 +20,9 @@
2020
<title>受け渡し</title>
2121

2222
<para>
23-
PHP 関数はその名前を単に文字列として渡します。
23+
PHP 関数はその名前を単に文字列、または
24+
<link linkend="functions.first_class_callable_syntax">第一級callable</link>
25+
として渡します。
2426
どのようなビルトインまたはユーザー定義の関数も渡すことができます。
2527
ただし、
2628
<function>array</function>, <function>echo</function>,
@@ -128,7 +130,7 @@ call_user_func($c, 'PHP!');
128130
<para>
129131
<example>
130132
<title>
131-
クロージャを使ったコールバックの例
133+
クロージャ (<classname>Closure</classname>) を使ったコールバックの例
132134
</title>
133135
<programlisting role="php">
134136
<![CDATA[

0 commit comments

Comments
 (0)