Re: [PHP] Best practices for set/get methods

2005-04-14 Thread Rasmus Lerdorf
Tim Boring wrote: Does anyone have suggestions/ideas about best practices for writing set/get methods in PHP5? There are two basic ways I've seen this done, which I've provided examples of below. Method #2 is obviously the easier way, but that doesn't mean it may be the best way. I'm curious to re

Re: [PHP] Best practices for set/get methods

2005-04-14 Thread Greg Donald
On 4/14/05, Tim Boring <[EMAIL PROTECTED]> wrote: > Does anyone have suggestions/ideas about best practices for writing > set/get methods in PHP5? There are two basic ways I've seen this done, > which I've provided examples of below. Method #2 is obviously the easier > way, but that doesn't mean i

[PHP] Best practices for set/get methods

2005-04-14 Thread Tim Boring
Does anyone have suggestions/ideas about best practices for writing set/get methods in PHP5? There are two basic ways I've seen this done, which I've provided examples of below. Method #2 is obviously the easier way, but that doesn't mean it may be the best way. I'm curious to read people's respo