""almir"" <[EMAIL PROTECTED]> wrote in message 997fat$jdk$[EMAIL PROTECTED]">news:997fat$jdk$[EMAIL PROTECTED]... > are constants global, do i have to do something in my classes so that i can > use them as object variables, i have tested in with functions seems to be > global but how about classes and has anybody used it realy > I'm not sure if I get your point or not, anyway. Constants can be accessed from anywhere, in function, in class - NOT class initilizer if there are expressions involved. i.e. classs foo { var $something = CONSTANT1 | CONSTANT2; // This is INVALID var $another = CONSTANT1; // This is VALID } I use a lots of constants with my classes. Regards, -- Yasuo Ohgaki > regards > almir > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to