From 9b3dd4b20bb372635502656c1c222c5a869d34e3 Mon Sep 17 00:00:00 2001 From: Peter Cowburn Date: Wed, 29 Apr 2015 19:24:24 +0000 Subject: [PATCH] less lying about spaceship operator return values git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336683 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/language/operators.xml b/language/operators.xml index ee1b9ed1ee..1168341851 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1285,9 +1285,9 @@ Expression: 0 = -4 << 62 $a <=> $b Spaceship Operator - 0 if $a and $b are equal, - 1 if $a is greater than $b, - -1 if $b is greater than $a. + An integer less than, equal to, or greater than zero when + $a is respectively less than, equal to, or greater + than $b. Available as of PHP 7.