let's say I want to construct some input fields using this loop
$array = [];
foreach ( $array as $key => $value ) {
echo '<input type="text" value="'. $value .'" />';
}
In this particular case, this will not echo anything cause the array is empty, but I want to print the input field one time with no value if the array is empty. How can I accomplish this?