News for hackers. Stuff that matters.
Re:Ask HN: PHP Tricks and Best Practices? by sunkencity on Thursday October 30, 2008 @03:38AM (#348535)
if speed of execution is relevant, just use echo (which takes any number of arguments), and single quoted strings (concatenating, or parsing double quoted strings is slower):

function user_profile_link ($user) { echo '<a href="/user/', $user->profile, '">', $user->name, '</a>'; }

There are no comments on this comment yet.