¡@

Home 

php Programming Glossary: strname

how do i access static member of a class?

http://stackoverflow.com/questions/3818333/how-do-i-access-static-member-of-a-class

member of a class. my class is class A public static strName 'A is my name' public function xyz .. .. Since i have bunch.. bunch of classes stored in an array x array 'A' echo x strName I am getting error while printing. How can i print 'A is my.. If A is a class you can access it directly via A strName . class A public static strName 'A is my name' echo A strName..