Re: php and =&

From: Date: Mon, 06 Apr 2009 11:04:01 +0000
Subject: Re: php and =&
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-291120@lists.php.net to get a copy of this message
>I'm looking through various documentation on MDB2 > >In some examples the assignment operator looks like it is mixed with a >bitwise or logic operator - IE > >$mdb2 =& MDB2::factory($dsn); > >Other examples though just have > >$mdb2 = MDB2::factory($dsn); > >I'm trying to figure out exactly what =& does, why people would use it, >and when it is appropriate to use, but I haven't found anything and I >think my google skills need some practice as I don't know how to search >for =& in google. > >In the php manual on operators I did fine &= discussed but that's the >flip and it's use makes no sense in the context of setting a database >handle. > >Any tips would be appreciated.. With the =& operator, PHP creates references: http://phpbuilder.com/manual/en/language.references.whatdo.php Greetings from Germany Marc -- Sync and share your files over the web for free http://bithub.net/ My Twitter feed http://twitter.com/MarcSteinert

« previous php.general (#291120) next »