unemployment Posted June 8, 2011 Share Posted June 8, 2011 $data[0][$k]['message'] = '<a href=\"../u/' .$r['feedusername']. '\">' .ucwords($r['feedfirstname'].' '.$r['feedlastname']). '</a> has updated' .($r['gender'] == 1 ? 'his': 'her'); if (show_info($users_viewer_user_lvl, $users_privacy['location'])) { $location = "location to "; $location.= country($r['details']).'.'; $data[0][$k]['message'].= echo $location; // This Line Fails } else { $location = "location."; $data[0][$k]['message'].= echo $location; } Quote Link to comment https://forums.phpfreaks.com/topic/238785-cant-concatenate-to-an-array/ Share on other sites More sharing options...
Pikachu2000 Posted June 8, 2011 Share Posted June 8, 2011 The answer is basically the same as the one in your other thread from 14 minutes ago: http://www.phpfreaks.com/forums/index.php?topic=335484.msg1580325#msg1580325 Quote Link to comment https://forums.phpfreaks.com/topic/238785-cant-concatenate-to-an-array/#findComment-1226964 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.