- print_r: documentation ( source)
<?php
$points = 10;
$rounds = 0;
$array['spieler'] = array(
array('bez' => 'Punkte', 'wert' => $points),
array('bez' => 'Spielrunden', 'wert' => $rounds),
($rounds > 0? array('bez' => 'Punkte pro Runde', 'wert' => $points/$rounds) : array()),
);
print_r($array);