note 25331 deleted from language.variables.scope by aidan
| From: | aidan@php.net | Date: | Sun, 04 Jul 2004 02:51:08 +0000 |
| Subject: | note 25331 deleted from language.variables.scope by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72505@lists.php.net to get a copy of this message | ||
Note Submitter: yaroslav@yaroslav.ru
----
I have discovered that only "absolute globality" possible in PHP. For example:
<?
function a() {
function b() {
global $c;
print $c;
}
$c = 'a';
b();
}
a();
?>
outputs nothing, while
<?
function a() {
global $c;
function b() {
global $c;
print $c;
}
$c = 'a';
b();
}
a();
?>
does that trick.