$string = substr($stringname,0,50); echo $string;
http://www.php.net/substr Thank You Brian Paulson Sr. Web Developer [EMAIL PROTECTED] www.chieftain.com 1-800-279-6397 x 207 -----Original Message----- From: Daniel Perez Clavero [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 7:01 AM To: [EMAIL PROTECTED] Subject: [PHP] Extract of a Paragraph Hi list, I would like to show a extract (first 50 words of a text), in order to construct something similar to articles view with read more link. To Extract the first 50 words, should I use str_word_count, and explode/implode or there´s another way, much simple. Any sample would be apreciated. Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php