$grenze) $anzahl++; $anteil = $anzahl / count($feld) * 100; echo number_format($anteil, 2, ",", ".") . "% der Werte liegen oberhalb von $grenze"; ?>