Use this simple PHP code snippet to truncate a long text string along word boundaries. Very useful for displaying a summary with specified number of words from a long text.
↧
Use this simple PHP code snippet to truncate a long text string along word boundaries. Very useful for displaying a summary with specified number of words from a long text.