note 55821 modified in function.wordwrap by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 18:33:09 +0000 |
| Subject: | note 55821 modified in function.wordwrap by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155138@lists.php.net to get a copy of this message | ||
I wanted to use this function to add a particular text after a certain word count. Here is how I
implemented it:
<?php
$content = wordwrap($content, 200, "....<br /><!--more-->\n");
?>
Above code adds the text '...<br/><!--more-->\n' after a 200 word count. I
know there are a million ways this can be done in PHP. Go PHP!
--was--
I wanted to use this function to add a particular text after a certain word count. Here is how I
implemented it:
$content = wordwrap($content, 200, "....<br /><!--more-->\n");
Above code adds the text '...<br/><!--more-->\n' after a 200 word count. I
know there are a million ways this can be done in PHP. Go PHP!
http://php.net/manual/en/function.wordwrap.php