mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
NULL won't trigger the default value
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@224489 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
0d3ba16a6c
commit
262c655b6f
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.63 $ -->
|
||||
<!-- $Revision: 1.64 $ -->
|
||||
<chapter id="language.functions">
|
||||
<title>Functions</title>
|
||||
|
||||
|
@ -259,6 +259,7 @@ function makecoffee($type = "cappuccino")
|
|||
return "Making a cup of $type.\n";
|
||||
}
|
||||
echo makecoffee();
|
||||
echo makecoffee(null);
|
||||
echo makecoffee("espresso");
|
||||
?>
|
||||
]]>
|
||||
|
@ -272,6 +273,7 @@ echo makecoffee("espresso");
|
|||
<para>
|
||||
<screen>
|
||||
Making a cup of cappuccino.
|
||||
Making a cup of .
|
||||
Making a cup of espresso.
|
||||
</screen>
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue