I need a PHP function that will count the number of characters of a phrase. If the phrase is longer than “140” character then this function should delete all the other character and add three points at then end of the phrase.
So for example we have.
$message= "I am what I am and you are what you are etc etc etc etc"
IF this is longer than 140 characters, then
$message= "I am what I am and you are what you are..."
Is this possible? How?
Thank you
1 Answer