Re: php and =&

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux