Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does -> do

Status
Not open for further replies.

TStriker

Programmer
Nov 12, 2003
277
US
I'm looking at a script that contains this line:

$recid = $cgi->get('recid');

What does the "->" between $cgi and get do?

-Striker
 
it's used in object oriented programming. your exceprt above assigns to the variable $recid the value obtained by caling the method 'get' of the object $cgi.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top