Re: RFC: C-sharp style property get/set syntax for PHP
| From: | Stas Malyshev | Date: | Tue, 30 Nov 2010 15:00:27 +0000 |
| Subject: | Re: RFC: C-sharp style property get/set syntax for PHP | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50733@lists.php.net to get a copy of this message | ||
Hi!
That is true for PHP variables. isset is basically saying "does this variable exist", and unset is saying to get rid of it.This is also true for object properties - see magic methods. I don't see why you shouldn't be able to unset them - you can do that with regular properties... So what you imagine would happen if you call unset($foo->property) or isset($foo->property)? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227