Jump to content

shorten strings?


ShoeLace1291

Recommended Posts

I have a database query that pulls a member's name out of the table.  How would add "..." to the end of the name if the string is more than 7 characters?  For example, the members would be John Smith, John Doe, Jane Doe.  How would I make it appear like this:

 

Jane Do...

John Sm...

John Do...

Link to comment
https://forums.phpfreaks.com/topic/103202-shorten-strings/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.