if ($user['userid'] == X) { $user['musername'] = "<img src="some img url" /> " . $user['musername']; }