Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    What does this code mean?

    What does this code mean?

    $body.="<tr><td align=center>".rawurldecode($HeaderBox)."</td></tr>";

    I have a php template I'm trying to customize and I'm trying to figure out where the header image is coming from, and I assume it's from this code. But, I don't understand what it means, or why it chooses the image it does.

    yes, obviously I'm a newbie, and learning new stuff is soooo frustrating.
    thanks for reading!

  • #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    Hi merrygoround,

    Good day!

    "." sign is one of the "string" operators of PHP. The "dot" operator - "appends" a string from the other.

    With that said, "body" ($body), variable was first set somewhere in your page, and thus, was reused again to concatenate the previous value to the one that you've pointed out. This means, that you need to find probably a file that was sorted earlier before the file to where you found this code.

    Please check header.php or "index.php" of your file-structure, where the "header" is probably set.

    For more info, you might find these links useful:
    http://php.net/manual/en/language.operators.string.php
    http://www.raymondangana.com/php/php...on-03-01-2010/

    Hope that helps.
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph


  •  

    Posting Permissions

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