I am using a database to get the prices as displayed as "Betrag". The actual value of "Betrag" is "18981", but i am converting it by:
$tabledata[] = array('category' => $beschriftung, 'value' => number_format($zeile['summe'], 0, ',', '.').'€', 'id' => $i);
My problem is that i want to get the marked text "Anzahl: 413" below the price, but using the number_format, it doesn't work. I was trying something like $tabledata += or just adding it after the conversion but it didn't get my expected output. It all works with a while loop iterating over the id.
So the actual question is: Is it possible to add a String to an array without deleting the value which is alredy in it? Feel free to ask questions or give comments.
