Why can't I access any variables from out side of functions??
This code for example will not print anything,.. why?? :s
<?
$txt = "hello world";
function xPrint()
{
echo $txt;
}
xPrint();
?>
My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
This code for example will not print anything,.. why?? :s
<?
$txt = "hello world";
function xPrint()
{
echo $txt;
}
xPrint();
?>
My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work