如何将已检查的属性应用于多个无线电输入字段

I am echoing out 2 radio input fields in a foreach statement. I would like to have the first option checked in all the radio input fields that gets echoed out.

But for some reason it marks the radio input field "checked" all the way in the bottom. (The last one)

How can I make it so that every input field that gets echoed out will be marked checked?

Below is my code. Thank you for your help

//Foreach loop start here

<input type="radio"  checked="checked" name="display_type" value="radio" >Radio
 <br>
<input type="radio"  name="display_type" value="checkbox">Check Box

If multiple radios are marked as "checked", the browser applies it only to the last one. You have to distinct the loop iteration. For example:

foreach ($someData as $index => $value) {
  ?>
  <input type="radio" <?php if ($index === 0) { ?>checked<?php } ?>...>
  <?php
}