note 21849 added to ref.classobj
| From: | php-contrib at antispam dot i-ps dot co dot uk | Date: | Wed, 29 May 2002 10:24:35 +0000 |
| Subject: | note 21849 added to ref.classobj | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31143@lists.php.net to get a copy of this message | ||
Okay, I'm confused.
In my book (PHP Programming) it says I can reference variables passed to the function like this:
<pre>function func($this->variable)</pre>
But this doesn't appear to work.
If I want to alter and return $variable, is the only way I can do it like this:
<pre>function func($variable)
{
$this-variable = $variable;
}</pre>
--
http://www.php.net/manual/en/ref.classobj.php
http://master.php.net/manage/user-notes.php?action=edit+21849
http://master.php.net/manage/user-notes.php?action=delete+21849
http://master.php.net/manage/user-notes.php?action=reject+21849