How do i declare variables that can be used in all the functions throught aclass.
For ex. i have a variable $prefix which has to remain constant throught the php class and has to be used in all the functions. I tried using this in the begining of the class ::
class article {
global $prefix;
var $prefix = "nm";
but got no result . the variable $prefix still remains NULL .