Pls Help - PHP String Question
- From: Unknown <Unknown@xxxxxxxxxxx>
- Date: Sun, 27 Aug 2006 12:18:29 +0100
Hi All,
First of all, I am fairly new to PHP and am in all honesty a "modifier"
rather then a "coder", but I am trying to learn.
If this is the wrong group to post, I would apprichate some forums /
newsgroups or websites that I could be directed to.
Here is my problem...
I host a killboard for a game (Eve Online) and the killboard has the
following code...
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)
What I need to do is manage this line output so...
"<Various> Control Tower" goes into one string.
" / " is ignored.
"<Various>" goes into another string.
" (Laid The Final Blow)" is ignored.
....I would truely apprichate any assistance here. As I am going around
in circles.
Many thanks.
.
- Follow-Ups:
- Re: Pls Help - PHP String Question
- From: Mike Collins
- Re: Pls Help - PHP String Question
- Prev by Date: Re: can't use include file with php tags
- Next by Date: Re: can't use include file with php tags
- Previous by thread: can't use include file with php tags
- Next by thread: Re: Pls Help - PHP String Question
- Index(es):
Relevant Pages
|