In this tutorial, see how to display ellipsis in the <span> element having the CSS overflow property with the “hidden” value. Add the text-overflow property.
This tutorial will help you to make CSS ellipsis work on a table cell. To achieve this goal, you can use some CSS properties which are demonstrated on this page.
To truncate a string to the first n characters and add three dots if any characters are removed in PHP, you can use the following function.