what does -> mean?

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
stevestark5000
Forum Commoner
Posts: 61
Joined: Thu Jan 27, 2011 12:08 am

what does -> mean?

Post by stevestark5000 »

what is the -> called in the following code? also, is add a function?
$form->add('ARTICLE_announce', 'checkbox');
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: what does -> mean?

Post by Darhazer »

add is a method (function of a class)
-> is used to refer to class variables and functions
Post Reply