Gossamer Forum
Quote Reply
-> ???
What does "->" mean? I have seen it so often in sample codes and I haven't found it anywhere under operators in the documentation. Can anyone help this poor newb out?
Quote Reply
Re: [JoFrRi] -> ??? In reply to
Hi,

I'm assuming you mean in perl? If so, have a read through `perldoc perlboot`.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] -> ??? In reply to
Lol, my apologies, I should have let you guys know what language. The language I'm referring to is PHP.
Quote Reply
Re: [JoFrRi] -> ??? In reply to
In what context? For example, provide a line of PHP code using ->

----
Cheers,

Dan
Founder and CEO

LionsGate Creative
GoodPassRobot
Magelln
Quote Reply
Re: [dan] -> ??? In reply to
For example:

Code:

while ( $row = $db->sql_fetchrow($result) ) {
while statements
}


I didn't know that it was used in more than one way. Just shows my ignorance in this topic.
Smile
Quote Reply
Re: [JoFrRi] -> ??? In reply to
No ideas?
Quote Reply
Re: [JoFrRi] -> ??? In reply to
In object-oriented PHP, the -> is used to reference either a property or a method of an object. In your example above, it's calling the sql_fetchrow() method.

You might want to take a look at the section of the PHP manual that deals with objects and classes:
http://www.php.net/.../en/language.oop.php

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Quote Reply
Re: [hennagaijin] -> ??? In reply to
Thanks, I'll do that.

Always nice to get some direction!