Code: Select all
<?php
arsort($total_ratio);
$y = 10;
for($i = 0; $i < count($name); $i++)
{
imagestring($im, $font, 10, $y , $i + 1 . ". " . $name[$i] . $fake, $red);
imagestring($im, $font, 140, $y , $kills[$i], $red);
imagestring($im, $font, 210, $y , $deaths[$i], $red);
if (
$row = each($total_ratio)) {
imagestring($im, $font, 260, $y , " $row[value][$i] " , $white); }
$y += 15;
}
$path = 'makes.png';
imagepng($im, $path);
imagedestroy($im);
?>