What is the difference between the assignment operator "=" and the comparison operator "==" in PHP, and how does it relate to the code snippet provided?

The assignment operator "=" is used to assign a value to a variable, while the comparison operator "==" is used to compare two values. In the provided code snippet, the issue is that the assignment operator "=" is used instead of the comparison operator "==", which can lead to unexpected behavior. To fix this, we need to replace the "=" with "==".

// Incorrect code
$number = 5;

if ($number = 5) {
    echo "Number is 5";
} else {
    echo "Number is not 5";
}
```

```php
// Corrected code
$number = 5;

if ($number == 5) {
    echo "Number is 5";
} else {
    echo "Number is not 5";
}