I guess the easiest way to do this would be to use a regular
expression:
if (preg_match("/<title>(.*)<\/title>/i", $string, $m)) {
$found = $m[1];
}
echo $found;
Richard
Friday, May 7, 2004, 12:11:02 PM, thus was written:
> Hi List,
> $string = "This is a test string to <title>SHOW ONLY THIS BIT</title> of the
> string";
> I have tried strpos, str_replace and other string manipulation things but I
> cant get my head around how to achieve showing the text with the
> <title></title> tags of the string.
> Any help is appreciated and I thank you in advance for any help given.
> Thank you
> Dave Carrera
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php