Re: Pls Help - PHP String Question
- From: Mike Collins <webspammer_@xxxxxxxxxxxx>
- Date: Sun, 27 Aug 2006 12:00:21 GMT
On Sun, 27 Aug 2006 12:18:29 +0100, Unknown <Unknown@xxxxxxxxxxx>
wrote:
if( preg_match("(^Destroyed\:.*?)", trim($arrLines[$i])) && $strMode ==
0) {
$strVICTIMTYPE = trim(substr(trim($arrLines[$i]), 11, strlen($arrLines
[$i])));
...what this does is put whatever is past "Destoyed:" into the
"$strVICTIMTYPE" string.
Now things have changed with the way some information is presented and
we can have the following information...
Destroyed: <Various> Control Tower / <Various> (Laid The Final Blow)
if(
preg_match("(^Destroyed\:.*?)", trim($arrLines[$i]))
&& $strMode == 0) {
$strVICTIMTYPE =
preg_replace('/(^Destroyed.*Control Tower)\/
(.*)\(Laid The Final Blow\)/ix', $1 . ' ' . $2, $arrLines[$i]);
That's my best guess. Good luck.
.
- References:
- Pls Help - PHP String Question
- From: Unknown
- Pls Help - PHP String Question
- Prev by Date: Re: can't use include file with php tags
- Next by Date: Re: Site root question: Newbie
- Previous by thread: Pls Help - PHP String Question
- Index(es):