What is the issue with the for loop in the provided PHP code snippet?
The issue with the for loop in the provided PHP code snippet is that the condition should be checking for less than the length of the array, not less than or equal to. This is because array indexes start at 0, so if the condition is less than or equal to the length of the array, it will try to access an index that does not exist, causing an "Undefined offset" error. To fix this issue, the condition in the for loop should be changed to $i < count($fruits).
$fruits = array("Apple", "Banana", "Orange", "Mango");
for($i = 0; $i < count($fruits); $i++) {
echo $fruits[$i] . "<br>";
}