Ok, I can explain so some pplz understand me and some people won't
So here it goes
Is there any way I can use str replace so if text comes
"<strong>Team 1</strong><br>
<br>"
It replaces it with nothing
but if the text
"<strong>Team 1</strong><br>
Playername"
Comes, It doesn't do anything to it, so here's the code that shows Team *... blabla
So here it goes
Is there any way I can use str replace so if text comes
"<strong>Team 1</strong><br>
<br>"
It replaces it with nothing
but if the text
"<strong>Team 1</strong><br>
Playername"
Comes, It doesn't do anything to it, so here's the code that shows Team *... blabla
PHP Code:
foreach ($replay->Teams as $TeamID=>$Team) {
$i++;
$thing = "<strong>Team ".$i."</strong><br>\n";
print $thing;
foreach ($Team as $Player) {
if ($Player['team'] !== 'Observer') {
echo " <img src=\"big/".$Player[color]."/".$Player['race'].".jpg\" height=50>".$Player['nick']."<br>\n";
} elseif ($Player['team']==='Observer') {
$observers[] = $Player;
}
}echo "<br>\n";
}
Comment