Forum Moderators: coopster

Message Too Old, No Replies

Meaning of ->

         

bumpaw

4:37 pm on Apr 18, 2005 (gmt 0)

10+ Year Member



[3]$this->connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error());[/3]

Can someone give me the meaning of the "->" symbol in the above? I dug for awhile in the Manual but it's hard to do a search on a symbol and couldn't find it listed with any of the operators.

patrickrock

4:49 pm on Apr 18, 2005 (gmt 0)

10+ Year Member



Its basically just calling the method "connection" on the object $this.

Its how PHP does its object oriented syntax.

bumpaw

5:39 pm on Apr 18, 2005 (gmt 0)

10+ Year Member



Thanks for the clue and after taking it to the Webopidia it's a little clearer now.

ergophobe

9:43 pm on Apr 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Have a look here:

[us2.php.net...]