> > > > global $x > > > > Instead defining this global variable in each method of a class,I like to > > define the variable in class and make it available for all the methods > > inside the same class.Your suggestions are welcome. > > > Access the global variable as: > > $GLOBALS['Varname'] > > AFAIK This way, you don't need any declaration at all, to use the Global > Variable. >
global variable $x is an object of an class! _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
