Variable scope
| From: | George Nicolae | Date: | Thu, 14 Mar 2002 13:53:32 +0000 |
| Subject: | Variable scope | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-96043@lists.php.net to get a copy of this message | ||
I have the following code:
<?
function a($var_a)
{
b();
}
function b()
{
global $var_a;
echo $var_a;
}
a("hello word!");
?>
why function b() don't echo anything? can I resolve this problem without
calling b($var_a)?
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com