Re: Parsing question from newbie

From: Date: Mon, 06 Aug 2001 17:58:10 +0000
Subject: Re: Parsing question from newbie
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61456@lists.php.net to get a copy of this message
On Sun, 5 Aug 2001, Craig Westerman wrote: > ><? >$url = 'http://www.php.net'; >$lines_array = file($url); >$lines_string = implode('', $lines_array); >eregi("<title>(.*)</title>", $lines_string, $head); >echo $head[0]; >?> > >It prints out: ><title>PHP: Hypertext Preprocessor</title> > >How do I modify this to get what is between the TITLE tags and not include >the TITLE tags? > echo $head[1]; http://www.php.net/manual/en/function.ereg.php -- "We only begin to live when we conceive life as Tragedy..." - W. B. Yeats

« previous php.general (#61456) next »