unemployment Posted September 30, 2011 Share Posted September 30, 2011 This code is working for me but it just looks sloppy. Can this be written nicer? echo ' <a href="/u/'.$user_info['username'].'"> <img src="', getUserAvatar($user_info['username']), "\" class=\"avatar navigation small f_left clear\" title=\"${user_info['display_name']}\" alt=\"${user_info['display_name']}\" /> <span>${user_info['display_name']}</span> <span class=\"tri\">▼</span> </a>"; Quote Link to comment https://forums.phpfreaks.com/topic/248186-can-this-be-done-better/ Share on other sites More sharing options...
premiso Posted September 30, 2011 Share Posted September 30, 2011 Yes, it can. Quote Link to comment https://forums.phpfreaks.com/topic/248186-can-this-be-done-better/#findComment-1274428 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.