Modifying a Variable with $GLOBALS
<? $dinner = 'Curry'; function hungry_dinner() { $GLOBALS['dinner'] .= ' and Fried'; } print "Regular dinner is $dinner"; print "\n"; hungry_dinner(); print "Hungry dinner is $dinner"; ?>