What is text truncation?
TEXT TRUNCATION IS THE PROCESS OF shortening text content. If text is truncated, it is usually followed with 3 periods called an ellipsis. On webpages, there are several ways to shorten text content so that it fits within a certain designated area.
What is truncated line?
In poetry, it's used to describe a line that has fewer syllables that the meter (the rhythm of the line) suggests it should. Still, truncated is most commonly used in a general way. A more common and less formal synonym is shortened.
How to truncate text in PHP?
The ftruncate() function in PHP is an inbuilt function which is used to truncate(shorten) an open file to the specified length. The file and the new size of the file are sent as parameters to the ftruncate() function and it returns True on success and False on Failure.