Warning: Undefined array key "value1" in /home/course/u90/public_html/ns_website/ch08/test_get.php on line 10

Warning: Undefined array key "value2" in /home/course/u90/public_html/ns_website/ch08/test_get.php on line 10

You sent me the values and .
Here is their product:
Warning: Undefined array key "value1" in /home/course/u90/public_html/ns_website/ch08/test_get.php on line 12

Warning: Undefined array key "value2" in /home/course/u90/public_html/ns_website/ch08/test_get.php on line 12
0

From the function displayValues(), $val=7.
Warning: Undefined variable $value in /home/course/u90/public_html/ns_website/ch08/test_get.php on line 27

From the function displayValues(), $value=.

You need to know why the value 7 appears in the
first of the two statements immediately above,
but not in the second. Can you explain this?
Hint:
Look at the PHP code to see what this little
example tells you about PHP variable scope.