I have a class with member variables. What is the syntax in PHP to access the member variables from within the class when the class is being called from a static contex
For brevity sake I will only offer the php 5 version:
class Example
{
// Class Constant
const APPLE = 'red';
// Private static member
private static $apple;
public function __construct()
{
print self::APPLE . "\n";
self::$apple = 'red';
}
}