What potential issues can arise from using the "goto" statement in PHP code?
Using the "goto" statement in PHP code can lead to spaghetti code and make the code harder to read and maintain. It can also make debugging more difficult as it creates non-linear execution paths. Instead of using "goto", consider refactoring the code to use structured programming constructs like loops and functions.
// Example of refactoring code to avoid using "goto"
$counter = 0;
while ($counter < 10) {
echo $counter . "<br>";
$counter++;
}