In this particular case, there is no difference between using parentheses and not.
So your code is equivalent to the following:
$$key = $temp;
Brackets are commonly used to force PHP to interpolate variables in strings, which is not necessary in this case.
:
${$array[0]} = $temp;
$$array[0] = $temp;
, ($$array)[0], $($array[0])