class StaticTester
{
private static $id=0;
function__construct()
{
self::$id+=1;
}
public static function checkIdFromStaticMethod()
{
echo "Current Id from Static method is ".self::$id;
}
}
$st1=new StaticTester();
StaticTester::checkIdFromStaticMethod(); // this outputs 1.
Okay ,I am not getting why the output is 1? After all Static means the value cannot be changed !