Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Thanks but self::$var1; is incorrect as it's being accessed outside the class. You updated your answer as I was commenting though. testA::$var1; would do the trick. Commented Feb 14, 2014 at 3:05
  • I have mentioned the both scenarios so you can get an idea about it Commented Feb 14, 2014 at 4:17
  • 1
    Yeah I appreciate that for anyone else with the same question. It was just a brain dead moment. As stated earlier. Gave you an up vote for it anyway :) Commented Feb 14, 2014 at 10:06