Re: String Question
| From: | John W. Holmes | Date: | Sun, 02 May 2004 15:22:29 +0000 |
| Subject: | Re: String Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185140@lists.php.net to get a copy of this message | ||
Dave Carrera wrote:
How would I show 100 chars after finding the first instance of a searched word in a string.$start = strpos('hello',$str); $hundredchars = substr($str,$start,100); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com