note 73621 added to language.functions
| From: | DaveMiller at osu1 dot php dot net | Date: | Sun, 04 Mar 2007 18:36:56 +0000 |
| Subject: | note 73621 added to language.functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124067@lists.php.net to get a copy of this message | ||
email at owlcroft dot com:
That is a bad idea as it'll make debugging hard! Instead, define your function like this:
<?php
function mywonderfulfunction($arg = null) {
//...
}
?>
So that the argument is optional.
----
Server IP: 194.145.210.3
Probable Submitter: 86.20.30.13
----
Manual Page -- http://www.php.net/manual/en/language.functions.php
Edit -- https://master.php.net/note/edit/73621
Del: integrated -- https://master.php.net/note/delete/73621/integrated
Del: useless -- https://master.php.net/note/delete/73621/useless
Del: bad code -- https://master.php.net/note/delete/73621/bad+code
Del: spam -- https://master.php.net/note/delete/73621/spam
Del: non-english -- https://master.php.net/note/delete/73621/non-english
Del: in docs -- https://master.php.net/note/delete/73621/in+docs
Del: other reasons-- https://master.php.net/note/delete/73621
Reject -- https://master.php.net/note/reject/73621
Search -- https://master.php.net/manage/user-notes.php