Check radio get value to array

First, let’s put all the “payvalue” radio options into an array. This will allow us to then display them all using a foreach loop to reduce redundancy and the chance to make a mistake:

$payValueOptions = [126500000, 252000000, 503000000];

Now, let’s render the fields in a foreach loop:

$selectedPayValue = $_GET['price'];

foreach ($payValueOptions as $option):
    $isChecked = ($selectedPayValue == $option);
    ?>

    <input type="radio" name="payvalue" value="<?php echo $option; ?>" <?php $isChecked ? 'checked' : '' ?>><br>

    <?php
endforeach;