What are the potential issues with using multiple opening and closing PHP tags within a loop?

Using multiple opening and closing PHP tags within a loop can lead to unnecessary parsing overhead and can make the code harder to read and maintain. To solve this issue, it is recommended to use a single set of opening and closing PHP tags for the entire loop to improve performance and readability.

<?php
// Example of using a single set of opening and closing PHP tags within a loop
for ($i = 0; $i < 10; $i++) {
    // Code logic here
    echo $i;
}
?>