<html>
<head>
<title>Menggunakan dowhile</title>
</head>
<body>
<?php
$abjad=A;
do {
echo $abjad;
$abjad++;
} while ($abjad < Z );
?>
</body>
</html>

Hasil :