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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie question 1

Status
Not open for further replies.

jenodorf

Technical User
Jan 11, 2005
36
0
0
Hi

Trying to get into the coding rather than downloaded scripts

have what no doubt is a simple question

can someone please tell me what

the line

echo($cartweaver->cartLinks());

means? In particular the -> , tried to look it up but aa I don't know waht it's called I failed.

thanks

Ian

<?php
if($_SESSION["cartSubtotal"] < 25) {
echo("You must order $25 or more. Go back to correct.");
echo($cartweaver->cartLinks());
exit();
}?>
 
It basically means that $cartweaver is an instantiated object of a class. That class contains a function called cartLinks(). So the output from the cartLinks() function is being sent to the browser to be displayed.

See this article for more detail or search for "php oop" in Google:

P.S. OOP stands for Object-Oriented Programming

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Hi

Thanks

I'll now delve a bit deeper

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top