Basic PHP Explanation

Hi all

Been using PHP on and off for a while now but just can’t get my head around some of the syntax.
What exactly are the snippets of code saying below?


<?php echo (isset($product['strapLine']))?$product['strapLine']:''; ?>


<?php echo $tfwConfiguration->getLanguage(array('globals', 'steps')); ?>

And does anybody have a good reference to what all these mean: ?, &&, ->, > etc. which seem to be linking a lot of the PHP code I’ve seen?

Many thanks, Barry

A very good write up about those symbols and more here:

  1. Ternary operator =
  2. Objects =

Great! Cheers guys.