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?
Oct 10, 2004, 10:20 PM
Administrator (9387 posts)
Oct 10, 2004, 10:20 PM
Post #2 of 8
Views: 7965
Hi,
I'm assuming you mean in perl? If so, have a read through `perldoc perlboot`.
Cheers,
Alex
--
Gossamer Threads Inc.
I'm assuming you mean in perl? If so, have a read through `perldoc perlboot`.
Cheers,
Alex
--
Gossamer Threads Inc.
Oct 11, 2004, 11:37 PM
Enthusiast (760 posts)
Oct 11, 2004, 11:37 PM
Post #4 of 8
Views: 7956
In what context? For example, provide a line of PHP code using ->
----
Cheers,
Dan
Founder and CEO
LionsGate Creative
GoodPassRobot
Magelln
----
Cheers,
Dan
Founder and CEO
LionsGate Creative
GoodPassRobot
Magelln
Oct 25, 2004, 2:33 PM
User (425 posts)
Oct 25, 2004, 2:33 PM
Post #7 of 8
Views: 7917
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
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