RE: [PHP] Extract of a Paragraph

From: Date: Wed, 04 Feb 2004 16:13:42 +0000
Subject: RE: [PHP] Extract of a Paragraph
Groups: php.general 
Request: Send a blank email to php-general+get-176806@lists.php.net to get a copy of this message
<snip> $string = substr($stringname,0,50); echo $string; http://www.php.net/substr </snip> That will just give the first 50 characters of the string. You could just try one of the many suggestions on http://www.php.net/manual/en/function.str-word-count.php Scroll down to the user comments and there is a bunch of examples.

« previous php.general (#176806) next »