<?php
function Test(){
$x=1;
$y=2;
echo "\n";
echo $x+$y;
echo "\n";
echo "the value of x is :$x \n";
echo "the value of x is :$y";
}
$x=5;
$y=10;
function myTest(){
global $x,$y;
$y=$x+$y;
echo "\n";
echo $y;
echo "\n";
}
function myTest2(){
$GLOBALS['y']=$GLOBALS['x']+$GLOBALS['y'];
echo "\n";
echo $GLOBALS['y'];
echo "\n";
}
myTest2();
myTest();
Test();
echo "<h2>PHP is fun!</h2>\n";
echo "Hello world!\n";
echo "This"," string"," was"," made"," with multiple parameters";
$cars=array("Volvo","BMW","SAAB");
echo {$cars[0]};
?>