]
Sent: Wednesday, August 25, 2004 2:42 PM
To: Erik Meyer; Php-General
Subject: Re: [PHP] summarized results w/function
From: "Erik Meyer" <[EMAIL PROTECTED]>
> Here is function
>
> function shorten_news_results ($input_text, $ending_text) {
> $news_strip=s
From: "Erik Meyer" <[EMAIL PROTECTED]>
Here is function
function shorten_news_results ($input_text, $ending_text) {
$news_strip=str_word_count($input_text, 1);
$news_split=array_splice($news_strip, 0, 40);
$news_split[]=$ending_text;
$news_story=implode(' ', $news_split);
echo "$news_story";
From: "Erik Meyer" <[EMAIL PROTECTED]>
Here is my function
Where?
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
news_split);
echo "$news_story";
}
Sorry about that..
-Original Message-
From: Erik Meyer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 1:29 PM
To: Php-General
Subject: [PHP] summarized results
I have a function loosely based on the fol
I have a function loosely based on the following tutorial from zend.com.
(http://www.zend.com/zend/tut/tutorial-brogdon2.php)
However, instead of using plain-text I am using results with html tags.
For example, the results may have Thisis some text that has been
inputted from a form. When I use
5 matches
Mail list logo