Re: global var

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

 



Hi,

Shouldn't  it be echo $txt?

========================
Vladimir.
Novosibirsk, Russia.


On Mar 16, 2005, at 00:38, H. J. Wils wrote:

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


-- 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