note 110072 added to language.oop5.properties
| From: | DennyZeng | Date: | Sun, 16 Sep 2012 18:10:20 +0000 |
| Subject: | note 110072 added to language.oop5.properties | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-190810@lists.php.net to get a copy of this message | ||
if you're watching this some code
class MyClass
{
private $foo = FALSE;
public function __construct()
{
$this->$foo = TRUE;
echo($this->$foo);
}
}
instead write like this one
class MyClass
{
private $foo = FALSE;
public function __construct()
{
//line below not gonna work
//$this->$foo = TRUE;
//instead
$this->foo = TRUE;
//line below not gonna work
//echo($this->$foo);
//instead
echo($this->foo);
}
}
----
Server IP: 69.147.83.197
Probable Submitter: 114.79.61.149
----
Manual Page -- http://www.php.net/manual/en/language.oop5.properties.php
Edit -- https://master.php.net/note/edit/110072
Del: integrated -- https://master.php.net/note/delete/110072/integrated
Del: useless -- https://master.php.net/note/delete/110072/useless
Del: bad code -- https://master.php.net/note/delete/110072/bad+code
Del: spam -- https://master.php.net/note/delete/110072/spam
Del: non-english -- https://master.php.net/note/delete/110072/non-english
Del: in docs -- https://master.php.net/note/delete/110072/in+docs
Del: other reasons-- https://master.php.net/note/delete/110072
Reject -- https://master.php.net/note/reject/110072
Search -- https://master.php.net/manage/user-notes.php