-----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 makes more sense to me to have all the error checking and validation
done /before/ passing it to the method as one of the concepts of classes
is that their methods are very simple and specific.

However, I wondered what you all thought on this?
- -- 

Nick Wilson

Tel:    +45 3325 0688
Fax:    +45 3325 0677
Web:    www.explodingnet.com



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8ZCTkHpvrrTa6L5oRAlNWAKCYFZPv5OCsfO5cNS0myXJpjeI+TwCgoOof
k1a/n+zDDmQG4Tj3qyLolwI=
=8x5W
-----END PGP SIGNATURE-----

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to