...

View Full Version : What does this code mean?



merrygoround
03-01-2010, 05:17 AM
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!

rangana
03-01-2010, 06:28 AM
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-string-concatenation-03-01-2010/

Hope that helps.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum