currently I have a drop down menu that shows list of 24 hour format time starting from 00:00 to 23:55 in 5 mins interval.

However, i wish to show the time starting from 06:00 am to 06:00 am in the list. I have been trying to figure this out but not very sure how to achieve this. Can anyone help?

Below is my drop down code:

```
<label>End Time:</label>

    <select name="end_time" id="endtime" class="form-control">
            <option value=""></option>
                <?php  
                    for ($x = 0; $x <= 23; $x++) {

                            if($x < 10){                
                                $h = '0'.$x;    
                            }else{
                                 $h = $x;
                                }

                                        ?>
            <option value="<?php echo $h.":00"; ?>"><?php echo $h; ?>:00</option>
            <option value="<?php echo $h.":05"; ?>"><?php echo $h; ?>:05</option>
            <option value="<?php echo $h.":10"; ?>"><?php echo $h; ?>:10</option>
            <option value="<?php echo $h.":15"; ?>"><?php echo $h; ?>:15</option>
            <option value="<?php echo $h.":20"; ?>"><?php echo $h; ?>:20</option>
            <option value="<?php echo $h.":25"; ?>"><?php echo $h; ?>:25</option>
            <option value="<?php echo $h.":30"; ?>"><?php echo $h; ?>:30</option>
            <option value="<?php echo $h.":35"; ?>"><?php echo $h; ?>:35</option>
            <option value="<?php echo $h.":40"; ?>"><?php echo $h; ?>:40</option>
            <option value="<?php echo $h.":45"; ?>"><?php echo $h; ?>:45</option>
            <option value="<?php echo $h.":50"; ?>"><?php echo $h; ?>:50</option>
            <option value="<?php echo $h.":55"; ?>"><?php echo $h; ?>:55</option>
                                    <?php } ?>
                            </select>

```