<html> <head> <title>Accessing Global Variables with the global Statement</title> </head> <body> <?php $life=42; function meaningOfLife() { global $life; print "The meaning of life is $life<br>"; } meaningOfLife(); ?> </body> </html>
_________________ M. S. Rakha, Ph.D. Queen's University Canada