View Single Post
Old 01.08.2006, 10:42   #8
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

I forgot about backstab.

[php:1:6314cbf69b]
// {i_backstab;5479;300;0}
preg_match_all("/\{i_backstab;([0-9]{1,});([0-9]{1,});([0-9]{1,})\}/i", $line[$n], $matches);

if (count($matches[1]) >= 1)
{
$line[$n] = str_replace("{i_backstab;".$matches[1][0].";".$matches[2][0].";".$matches[3][0]."}", "{i_backstab;".$matches[1][0].";".$matches[2][0]."}", $line[$n]);
unset($matches);
}
[/php:1:6314cbf69b]
Firedaemon is offline