<?php header("Content-type: text/html; charset=utf-8"); for($i = 1; $i <= 10; $i++){ echo $i; if($i <= 5){ echo "●"; } else{ exit(); } echo "<br>"; } echo "ループ終了"; ?>