I have some data witch i looping in foreach. That data is `input type=radio` buttons with name. How can i select specific item in foreach.

**My code:**

```
<?php foreach($items as $item): ?>
   <input type="radio" name="price" value="<?= $item['id'];?>"> <?= $item['name'];?> // 15 items looped
<?php endif; ?>   

```

**Output**

```
<input type="radio" name="price" value="1"> 10$
<input type="radio" name="price" value="2"> 20$
<input type="radio" name="price" value="3"> 30$
<input type="radio" name="price" value="4"> 40$
<input type="radio" name="price" value="5"> 50$
<input type="radio" name="price" value="6"> 60$

```

I have custom price buttons. When i click on on button i want to select one specific radio button in `foreach`.

```
<button>select 10$ </button>
<button>select 20$ </button>
<button>select 30$ </button>

```