php simple function remove from characters of a word

Nadori

New Member
I need a simple function(e.g function_cut) to cut from a variable characters if the number of characters is bigger than 14.For example the current $user has 18 characters and I need to cut 4 of them (doesn't matter which one). $user = "abc123abc123abc123"; $user = function_cut($user);
 
Back
Top