Thread: Quick PHP help
View Single Post
Old 04-26-2006, 12:13 AM   #2 (permalink)
Morb
Registered User
 
Join Date: Jun 2002
Posts: 221
-1 Internets
Send a message via AIM to Morb
You concatenate strings with the period operator in php. i.e.

Code:
$filelist .= "<a href=\"" . $file . "\">" . $file . "</a>";
php is also capable of parsing unambiguous variables within double-quoted strings, so this works as well:

Code:
$filelist .= "<a href=\"$file\">$file</a>";
Personally, though, I avoid the latter method for clarity's sake.
Morb is offline   Reply With Quote

 
Uberguilds Network