Blog

First Post

21/09/2022 | First Category


This function will extract $radius number of characters before and after the central $phrase with an ellipsis before and after.

The first parameter is the text to extract an excerpt from, the second is the central word or phrase to count before and after. The third parameter is the number of characters to count before and after the central phrase. If no phrase passed, the excerpt will include the first $radius characters with the ellipsis at the end.

 

Blog Categories