NYCPHP Meetup

NYPHP.org

[nycphp-talk] var_dump says "&object(myobj)(10)"

Allen Shaw ashaw at iifwp.org
Tue Mar 9 14:40:22 EST 2004


Debugging a little, looking at results of var_dump($_SESSION), and noticed
this mysterious (to me) thing:

With register_globals=off, the object $myobj is listed with an ampersand,
like so:
  ["_SESSION"]=>
  array(1) {
    ["myobj"]=>
   object(myclass)(14) {
.... etc. ...

With register_globals=on, the ampersand goes missing, like so:
  ["_SESSION"]=>
  array(1) {
    ["myobj"]=>
   object(myclass)(14) {
.... etc. ...

Can anyone tell me what that ampersand is?  (Googling for "var_dump
ampersand", etc. is getting me little help...)

Thanks,
Al

--
===========================================================
Allen Shaw                                  ashaw at iifwp.org
IIFWP Data and                           914.631.1331 x.106
    IT Services                        http://www.iifwp.org




More information about the talk mailing list