You are here: Pls Help - PHP String Question « All PHP « IT news, forums, messages
Pls Help - PHP String Question

Posted by Unknown on 08/27/06 11:18

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация