Thank you Sarah, for the good exlanation. Now I know array key should be single quoted all the time. If it's inside a double quoted string, put the array reference in {}.
One more question on:
print($links[URL]); // execution warning
Is there any setting to turn off the execution warning? I downloaded a PHP database application. It has a lots of lines like this to get values out of query results.
--Mark