Get first 100 characters from string, respecting full words February 20, 2023 by Tarik All you need to do is use: $pos=strpos($content, ' ', 200); substr($content,0,$pos );