global var

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I want to use a global var, but it doesnt seem to work.

This how it should be right?

<?
$txt = "text";

function echo_txt()
{
  global $txt;
  echo $global;
}

?>

but it doesnt work...

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux