please explain the following sybol ->

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
omerts
Forum Newbie
Posts: 1
Joined: Fri Oct 24, 2008 5:34 am

please explain the following sybol ->

Post by omerts »

i saw in the zencart files something like this
$new_products->RecordCount();

i know it is a variable and a function but what does this do "->" ?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: please explain the following sybol ->

Post by onion2k »

It's not a variable and a function really. It's an object and a method. http://uk3.php.net/manual/en/language.oop5.basic.php
Post Reply