I'm new to the site and to PHP. I recently lost my job as a ColdFusion developer and found that CF work in the area that I live is extremely rare, and have decided that picking up PHP can be of some benefit in helping me find new work.
I'm going through several different references, tutorials, and lessons and writing several testing-scripts in order to try to learn the language as quickly as I can. I figure right now, I've got about a 50% grasp on the neiuances of PHP.
I've run into something that I haven't seen yet and can't seem to find a quick explination as to what it is, and that is the use of '->' in PHP code. Pulling an example from a user-contributed post on php.net demonstrating the use of an exception:
try {
echo inverse(5) . "\n";
echo inverse(0) . "\n";
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
I've seen this symbol used elsewhere not related to exceptions, but it seems that it's required when throwing a custom exception. Can anyone explain to me (or send me to a link that does) what exactly this is and what it does?