What potential issue is highlighted in the PHP script regarding the if-else statement?
The potential issue in the PHP script is that the if-else statement is missing curly braces {} around the blocks of code. This can lead to confusion and errors, especially when there are multiple lines of code within the if or else block. To solve this issue, always enclose the code blocks within if and else statements in curly braces {}.
// Original code with potential issue
if ($condition)
echo "Condition is true";
else
echo "Condition is false";
// Corrected code with curly braces
if ($condition) {
echo "Condition is true";
} else {
echo "Condition is false";
}