[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variables taken as object references in PHP
From: |
Shigio YAMAGUCHI |
Subject: |
Re: Variables taken as object references in PHP |
Date: |
Thu, 24 Nov 2011 11:12:56 +0900 |
Hello,
> $ global -rx FooBar
> FooBar 4 FooBar.php $xFooBar = new FooBar;
> FooBar 5 FooBar.php $yFooBar = new FooBar;
> FooBar 7 FooBar.php $FooBar = "test";
...
> To me:
> FooBar 7 FooBar.php $FooBar = "test";
> Should not be a reference to the FooBar object.
Do you mean that 'name' and '$name' shoud be distinguished
as another name like follows?
$ global -rx FooBar
FooBar 4 FooBar.php $xFooBar = new FooBar;
FooBar 5 FooBar.php $yFooBar = new FooBar;
$ global -sx \$FooBar
FooBar 7 FooBar.php $FooBar = "test";
--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3