Making sure PHP substr finishes on a word not a character March 1, 2023 by Tarik substr($body, 0, strpos($body, ' ', 260))