Why are the results different when using <=> operator in PHP 7 and PHP 8?

Viewed 40

Why are the results different when using <=> operator in PHP 7 and PHP 8?

In PHP 7:

echo 76 <=> '76 trombones';  // displays 0

In PHP 8:

echo 76 <=> '76 trombones';  // displays -1
1 Answers
Related