Making sure PHP substr finishes on a word not a character

substr($body, 0, strpos($body, ' ', 260))

Leave a Comment