mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Removed br from example (By Jonid Bendo)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336598 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f113bb15c9
commit
394c58587d
1 changed files with 8 additions and 8 deletions
|
@ -81,13 +81,13 @@
|
|||
function foo()
|
||||
{
|
||||
$numargs = func_num_args();
|
||||
echo "Number of arguments: $numargs<br />\n";
|
||||
echo "Number of arguments: $numargs \n";
|
||||
if ($numargs >= 2) {
|
||||
echo "Second argument is: " . func_get_arg(1) . "<br />\n";
|
||||
echo "Second argument is: " . func_get_arg(1) . "\n";
|
||||
}
|
||||
$arg_list = func_get_args();
|
||||
for ($i = 0; $i < $numargs; $i++) {
|
||||
echo "Argument $i is: " . $arg_list[$i] . "<br />\n";
|
||||
echo "Argument $i is: " . $arg_list[$i] . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -98,11 +98,11 @@ foo(1, 2, 3);
|
|||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Number of arguments: 3<br />
|
||||
Second argument is: 2<br />
|
||||
Argument 0 is: 1<br />
|
||||
Argument 1 is: 2<br />
|
||||
Argument 2 is: 3<br />
|
||||
Number of arguments: 3
|
||||
Second argument is: 2
|
||||
Argument 0 is: 1
|
||||
Argument 1 is: 2
|
||||
Argument 2 is: 3
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue