The use of $$var is if you want to refence a varialble from a string.
Say you had a form with variables named v1 v2 v3
You could have a loop to show their contents.
for( $i=1;$i<3;$i++ )
{
$variable = "v".$i;
echo $$variable;
}
This would echo $v1 v2 v3.
Hope this helps.
HalfaBee