$a is variable where as $$a is reference variable 
like $a=Rajesh and $$a=Sharma so $Rajesh  value is  Sharma .