Re: Html in a string

From: Date: Fri, 06 Sep 2002 14:36:22 +0000
Subject: Re: Html in a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115467@lists.php.net to get a copy of this message
$mem = ' <!-- start HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE // end --> '; if (preg_match('/<!--.+?-->/is', $mem, $result)) { var_dump($result); } good luck, "Bård tommy nilsen" <bard.tommy.nilsen@svt.ntnu.no> wrote in message news:912E96AF3BA1D1118D9B00805FA7509701FA74DB@steve.svt.ntnu.no... > > > Hello > > > 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 -->

« previous php.general (#115467) next »