Re: [PHP-DEV] Re: Property setter and getter in PHP5

2003-07-20 Thread Masoud
Hi Derick which syntax is clear ? current syntax ? //--- class testClass { function __set($name,&$value) { switch ($name) { case 'propertyOne': { //do something $value

Re: [PHP-DEV] Re: Property setter and getter in PHP5

2003-07-20 Thread Derick Rethans
Hi, On Sun, 20 Jul 2003, Masoud wrote: > I knew __get and __set available, but i want to told C# like syntax is a > nice and clear syntax if available in php5 , > so we dont need to check property name and then set value . You can use C# for that ;) No really, I think the PHP 5 syntax is okay h

[PHP-DEV] Re: Property setter and getter in PHP5

2003-07-20 Thread Masoud
Hi John I knew __get and __set available, but i want to told C# like syntax is a nice and clear syntax if available in php5 , so we dont need to check property name and then set value . "John Lim" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Masoud, > > It's already availa

[PHP-DEV] Re: Property setter and getter in PHP5

2003-07-20 Thread John Lim
Hi Masoud, It's already available. See http://www.phppatterns.com/index.php/article/articleview/28/1/2/ "Masoud" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's just a suggestion to have a syntax like this in PHP5! > > A property is similar to a field (a member variable), with