I am very new to PHP programming. In the following code snippet from a smtp.php file, what does the " -> " do? Does is have a functional meaning? Or is it just part of a variable name?
if(!isset($this->status)){
$obj = new smtp($params);
if($obj->connect()){
$obj->status = SMTP_STATUS_CONNECTED;
}
Thanks in advanced!
What do the -> symbols do?
Moderator: General Moderators
Re: What do the -> symbols do?
They allow you to access an object's properties and methods.
Re: What do the -> symbols do?
Perhaps a tutorial with some videos might help? I haven't looked at these but hopefully it will take you in the right direction!
http://www.killerphp.com/tutorials/object-oriented-php/
http://www.killerphp.com/tutorials/object-oriented-php/
Re: What do the -> symbols do?
Thanks for the quick replies!