Re: Content - strip...
| From: | Philip Hallstrom | Date: | Fri, 02 Sep 2005 18:47:03 +0000 |
| Subject: | Re: Content - strip... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-221777@lists.php.net to get a copy of this message | ||
Hi there! Anyone that has an easy solution to this? I have a string filled with content. A lot of content is before Jumping Jack flash I want the $content - string to start at Jumping Jack flash Is there any smart way of doing this?Use strstr() to find the first occurence of "Jumping Jack flash". Then use substr() to extract from that point to the end of the string into a new string. http://us2.php.net/strstr http://us2.php.net/substr -philip