note 29486 added to functions.arguments
| From: | bandit_109 at hotmail dot com | Date: | Fri, 14 Feb 2003 20:26:28 +0000 |
| Subject: | note 29486 added to functions.arguments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43955@lists.php.net to get a copy of this message | ||
I tried
function foo($x, $y = null, $z = null)
and it ran fine when I did foo(5,1,1). I ran into trouble though when I tried foo(5,1,0) as it kept
thinking $z was null... strange.
PHP Version 4.2.3
--
http://www.php.net/manual/en/functions.arguments.php
http://master.php.net/manage/user-notes.php?action=edit+29486
http://master.php.net/manage/user-notes.php?action=delete+29486
http://master.php.net/manage/user-notes.php?action=reject+29486