No, that is false. The keyword 'global' is confusing:
<?php
global $myVar;
$myVar = 12;
function myFunction()
{
print $myVar;
}
myFunction();
?>
this will not do anything. $myVar has no value inside the function. Instead try this (notice the placement of the global keyword):
<?php
$myVar = 12;
function myFunction()
{
global $myVar;
print $myVar;
}
myFunction();
?>
using global inside functions gives access to variables declared outside the scope of the function. It does NOT declare a variable as a GLOBAL variable! It's confusing, but I hope that helped.
p.