<?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";
print "<h2>PHP is fun!</h2>";
print "Hello world!<br>";
print "I'm about to learn PHP!";
?>
15
20
3
the value of x is :1
the value of x is :2<h2>PHP is fun!</h2>
Hello world!
This string was made with multiple parameters<h2>PHP is fun!</h2>Hello world!<br>I'm about to learn PHP!