echo '<a href="'; echo $row['link']; echo '" target="_blank">'; echo $row['capTitle']; echo '</a>'; How can I make this link into one line of code, I have a hard time believing this is the most effective.
echo '<a href="', $row['link'], '" target="_blank">', $row['capTitle'], '</a>'; PHP: I've read somewhere, maybe in a blog post about PHP code optimization that the "," is faster than "." for string concatenation
of if you want to combine some string in different line you can use like this: $var .= "Line1"; $var .= "Line2"; $var .= "Line3"; PHP: This method will useful if you need add some process between the lines.