'); $max = 5; for ($i = 1; $i <= $max; $i++) { if ($i <= $rating) { print('★'); } else { print('★'); } } print(''); } }