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:
Etienne Kneuss 2006-12-06 17:58:20 +00:00
parent 0d3ba16a6c
commit 262c655b6f

View file

@ -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>