Jump to content

kericr

Member
  • Posts

    5
  • Joined

  • Last visited

kericr's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. kericr

    The use of "->" ?

    Ok, I understand. Thanks again, you've been a tremendous help to me today.
  2. kericr

    The use of "->" ?

    I'm not completely sure what you mean by using if/else instead of try/catch; I've seen if/else used in standard error-handling but not for exception-handling.
  3. Are you referring to having your menu div adjust in size dependant on the height of your content/stage/presentation div? If so, you might want to consider a 'faux-column' layout; a good site with code samples of this can be found at: http://www.code-sucks.com/css%20layouts/faux-css-layouts/.
  4. kericr

    The use of "->" ?

    Thanks a lot for the explination. I found this site through a google search that returned those videos on the link you provided; I haven't started going into them yet but they're on my task list. I appreciate the explination, that makes a lot of sense.
  5. kericr

    The use of "->" ?

    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?
×
×
  • Create New...