Re: [PHP] Method writing quesion

2002-02-08 Thread Jeff Sheltren
I would actually do the check inside the function, that way you don't have to do it each time before you call the function. Also, by doing this you can set things to a default value (if that is relevant to your code...). -Jeff At 08:20 PM 2/8/2002 +0100, Nick Wilson wrote: >-BEGIN PGP SIG

[PHP] Method writing quesion

2002-02-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, quick Q on writing Methods on PHP: If a methods purpose is to take 3 values and do stuff with those values, should the error checking (eg. that the values dont='') be done /inside/ the Method or by the script that calls it? It make