mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fixed mismatched file name in example (closes doc #53178)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304943 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
11ff354d6e
commit
9e70e6cb39
1 changed files with 4 additions and 4 deletions
|
@ -105,13 +105,13 @@ Number of arguments: 3
|
|||
test.php
|
||||
<?php
|
||||
function foo() {
|
||||
include './fga.inc';
|
||||
include './fna.php';
|
||||
}
|
||||
|
||||
foo('First arg', 'Second arg');
|
||||
?>
|
||||
|
||||
fga.php
|
||||
fna.php
|
||||
<?php
|
||||
|
||||
$num_args = func_num_args();
|
||||
|
@ -129,12 +129,12 @@ var_export($num_args);
|
|||
]]>
|
||||
</screen>
|
||||
<para>
|
||||
Output in PHP 5.3 and later:
|
||||
Output in PHP 5.3 and later will be something similar to:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Warning: func_num_args(): Called from the global scope - no function
|
||||
context in /home/torben/Desktop/code/ml/fga.inc on line 3
|
||||
context in /home/torben/Desktop/code/ml/fna.php on line 3
|
||||
-1
|
||||
]]>
|
||||
</screen>
|
||||
|
|
Loading…
Reference in a new issue