What potential problem can arise if the comparison operator "=" is used instead of "==" in PHP conditional statements?
Using the assignment operator "=" instead of the comparison operator "==" in PHP conditional statements can lead to unintended consequences. This is because the assignment operator will assign the value on the right side to the variable on the left side, instead of comparing the values for equality. To fix this issue, always use the comparison operator "==" when comparing values in conditional statements.
// Incorrect usage of assignment operator "=" instead of comparison operator "=="
$number = 5;
if ($number = 10) {
echo "Number is equal to 10";
} else {
echo "Number is not equal to 10";
}
```
```php
// Correct usage of comparison operator "=="
$number = 5;
if ($number == 10) {
echo "Number is equal to 10";
} else {
echo "Number is not equal to 10";
}