codex73

Splitting string after certain amount of words.

Feb 24th, 2012
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. $arr = explode(" ",$contents,20+1);
  2.                 $last = array_pop($arr);
  3.                 $contents = implode(" ",$arr)." "."the link here!"." ".$last;
Advertisement
Add Comment
Please, Sign In to add comment