Skip to content

Instantly share code, notes, and snippets.

@nuriye
Created December 12, 2018 14:24
Show Gist options
  • Save nuriye/8a7f93d21a70830499ba73a08310175b to your computer and use it in GitHub Desktop.
Save nuriye/8a7f93d21a70830499ba73a08310175b to your computer and use it in GitHub Desktop.
$sWholeWord = substr($contentNoTags, 0, 200);
$resultWholeWord = substr($sWholeWord, 0, strrpos($sWholeWord, ' '));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment