RE: [PHP] Html in a string
| From: | Jay Blanchard | Date: | Fri, 06 Sep 2002 13:06:29 +0000 |
| Subject: | RE: [PHP] Html in a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115458@lists.php.net to get a copy of this message | ||
[snip]
I have a string with the html source, but want to fetch only some
Of the code ...
I want to use alle the codes inside start->end ..
Example:
<!-- start
HTML CODES HERE
HTML CODES HERE
HTML CODES HERE
HTML CODES HERE
HTML CODES HERE
HTML CODES HERE
HTML CODES HERE
// end -->
[/snip]
Have a look at the regex functions ...
http://www.php.net/manual/en/ref.regex.php
HTH!
Jay
HONK if you love peace & quiet
*****************************************************
* Texas PHP Developers Conf Spring 2003 *
* T Bar M Resort & Conference Center *
* New Braunfels, Texas *
* Contact jay.blanchard@niicommunications.com *
* *
* Want to present a paper or workshop? Contact now! *
*****************************************************