number_format = fatal error

Acriss

Gesperrt
Folgender Code arbeitet leider nicht wie gewünscht. :(
Kenntjemand den Fehler, oder weiß jemand eine Alternative?

PHP:
$averlust = $kbarray[$bericht-4]; //Verluste Angreifer
$vverlust = $kbarray[$bericht-3]; //Verluste Verteidiger
$orbit = $kbarray[$bericht-2]; //Ress im Orbit


// Angreifer
$alost = explode(" ", $averlust);
$amet = $number_format($alost[2], 0, ".", ","); //Line 75
$akri = $number_format($alost[3], 0, ".", ",");
$ages = $number_format($alost[4], 0, ".", ",");

//Verteidiger
$vlost = explode(" ", $vverlust);
$vmet = $number_format($vlost[2], 0, ".", ",");
$vkri = $number_format($vlost[3], 0, ".", ",");
$vges = $number_format($vlost[4], 0, ".", ",");

//Truemmerfeld

$tfeld = explode(" ", $orbit);
$tfmet = $number_format($tfeld[2], 0, ".", ",");
$tfkri = $number_format($tfeld[3], 0, ".", ",");
$tfges = $number_format($tfeld[4], 0, ".", ",");

Fehler:
Fatal error: Call to undefined function: () on line 75
 
Probier es mal ohne dem Dollarzeichen vor number_format
PHP:
$tfges = number_format($tfeld[4], 0, ".", ",");
 
Zurück