Re: global var
| From: | Vladimir Rodionov | Date: | Tue, 15 Mar 2005 18:59:35 +0000 |
| Subject: | Re: global var | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38917@lists.php.net to get a copy of this message | ||
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