Thanks John,
Works a treat.
Thank You
Dave Carrera
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: 07 May 2004 12:32
To: Dave Carrera
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Showing only part of string
Dave Carrera wrote:
> $string = "This is a tes
Dave Carrera wrote:
$string = "This is a test string to SHOW ONLY THIS BIT 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
tags of the string.
Any help is appreciated and I thank you in ad
I guess the easiest way to do this would be to use a regular
expression:
if (preg_match("/(.*)<\/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 SHOW ONLY THIS BIT of the
3 matches
Mail list logo