SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard
    Join Date
    Dec 2005
    Posts
    1,675
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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?

    1.
    PHP Code:
    <?php echo (isset($product['strapLine']))?$product['strapLine']:''?>
    2.
    PHP Code:
    <?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
    The more you learn.... the more you learn there is more to learn.

  2. #2
    SitePoint Addict tom8's Avatar
    Join Date
    Mar 2012
    Location
    New Jersey
    Posts
    310
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    A very good write up about those symbols and more here:
    http://stackoverflow.com/questions/3...ol-mean-in-php

  3. #3
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  4. #4
    SitePoint Wizard
    Join Date
    Dec 2005
    Posts
    1,675
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great! Cheers guys.
    The more you learn.... the more you learn there is more to learn.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •