reference/funchand/functions/func-num-args.xml
6de3c40884af4a059d2e5b65a03b783e52946026
...
...
@@ -49,11 +49,11 @@
49
49
<title><function>func_num_args</function> example</title>
50
50
<programlisting role="php">
51
51
<![CDATA[
52
+

52
53
<?php
53
54
function foo()
54
55
{
55
-
$numargs = func_num_args();
56
-
echo "Number of arguments: $numargs\n";
56
+
echo "Number of arguments: ", func_num_args(), PHP_EOL;
57
57
}
58
58

59
59
foo(1, 2, 3);
...
...
@@ -70,6 +70,11 @@ Number of arguments: 3
70
70
</para>
71
71
</refsect1>
72
72

73
+
<refsect1 role="notes">
74
+
&reftitle.notes;
75
+
&note.func-named-params;
76
+
</refsect1>
77
+

73
78
<refsect1 role="seealso">
74
79
&reftitle.seealso;
75
80
<para>
76
81