  ,    :

<?php
function fuck()
{
    $q="hello world!";
    print $q;
}
fuck();
print $q;
?>

        "hello world!"  , 
   $q   fuck  .

     ,     global $q:

<?php
function fuck()
{
    global $q;
    $q="helloy world!</br>";
    print $q;
}
fuck();
print $q;
exit;
?>

     ,     .