The whole idea with object-oriented programming is polymorphism and
encapsulation.  You do not want your classes to access global variables but
access that information through objects and messaging between objects.  If
you are referring to the use of non-member as being outside of the class,
then again you want to use objects.  

As for practice, it is up to you.  For me, no...

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-----Original Message-----
From: Chris Boget [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 20, 2002 1:58 PM
To: PHP General
Subject: [PHP] Class question


I'm still kind of new when it comes to dealing with classes. I'm curious, is
it accepted practice for member functions of your class to:

* access global variables
* use non member, user defined functions

Chris


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

Reply via email to