I have information from the database that i list using foreach loop:
<table class="price_table">
<caption>Prices</caption>
<?php if($price= getCarPricePeriod($car->ID)):?>
<?php foreach ($prices as $price): ?>
<tr>
<td><input type="radio" name="price" value="<?= $price['Price'];?>"> </td>
<td><?= $price['Price'];?>$</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
So with this loop i get prices with radio button. How to make first item from loop be checked. Just first need to be checked
If i add checked in loop all items will be checked or randomly.