note 85615 deleted from functions.arguments by felipe
| From: | felipe@php.net | Date: | Wed, 10 Sep 2008 22:24:46 +0000 |
| Subject: | note 85615 deleted from functions.arguments by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144322@lists.php.net to get a copy of this message | ||
Note Submitter: Kirk Ouimet
----
When defining a function, why can't I use:
function doSomething($thing = $this->thing) {
}
?
I want $thing to default to whatever the value in the object is unless otherwise specified.