how do i access static member of a class?

marshahyena

New Member
I am trying to access static member of a class.my class is:\[code\]class A{ public static $strName = 'A is my name' public function xyz() { .. } ..}//Since i have bunch of classes stored in an array$x = array('A');echo $x::$strName;\[/code\]I am getting error while printing. How can i print 'A is my name'
 
Back
Top