<?php
$x=5;
function my text();
{
$y=10;
echo"<p>text variable inside the function: </P>";
echo"variable x is:$x";
echo"<br>";
echo"variable y is:$y";
}
my test();
echo"<p> test variable outside the function:</p>";
echo"variable x is:$x";
echo"<br>";
echo"variable y is:$y";
?>