How can the code provided be optimized to reduce redundancy and improve maintainability?

The code can be optimized by using a loop to iterate over the $items array instead of repeating the same block of code for each item. This will reduce redundancy and make the code more maintainable.

$items = ['apple', 'banana', 'orange'];

foreach ($items as $item) {
    echo "I like $item <br>";
}