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

Posted by Mike Collins on 08/27/06 12:00

On Sun, 27 Aug 2006 12:18:29 +0100, Unknown <Unknown@unknown.com>
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.

 

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

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