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

2003-07-20 Thread Masoud
better (clear and bugfree) coding . Masoud "Derick Rethans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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

[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 Masou

[PHP-DEV] Property setter and getter in PHP5

2003-07-20 Thread Masoud
make; } set { make = value; } } } Car c = new Car( ); c.Make = "Acura"; // use setter String s = c.Make; // use getter above example is a simple C# example in NET Framework Essentials. Masoud -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: htt