On my site i display a list of users, well, if a users name is very long it can cause tables to look funny. How do i shorten it? is there a function yto do this?
i.e how do i shorten say: pablo_de_la_pena to: pablo_de_la...
😕
if(strlen($username) > 10) { $username = substr($username,0,10) . "..."; }
echo $username;
Something like this will work.
Cheers
perfect!