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



Reply via email to