i'm trying to get data from a table using the table id to fetch the data for another action but i want the dropdown to pick a static id (eg ItemId=2) in-case the user dont want to change.

though there are other options populated too is also available for users selection but the ItemId 2 should be the default

below is my logic but is not woring




PHP Code:
$itemsArray['0'] = "please select an Number of items";
                        if(
count($items)) {
                            foreach (
$items as $item) {
                                
$itemsArray[$item->itemID] = $item->item;
esle 
$itemsArray
[2]= itemId

$itemsArray
['0'