From fe67d205e2e2e56e04ce20e62aa0dc97acb32d34 Mon Sep 17 00:00:00 2001 From: Peter Cowburn Date: Mon, 20 Apr 2015 14:08:54 +0000 Subject: [PATCH] condense spaceship operator result description git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336601 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/language/operators.xml b/language/operators.xml index 25a72db6fb..155ef06a93 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1284,10 +1284,11 @@ Expression: 0 = -4 << 62 $a <=> $b Spaceship Operator - It returns 0 if $a and $b are equal, - if $a is greater than $b then it returns 1, - if $b is greater than $a then ir returns -1. - Will be available as of PHP 7. + + 0 if $a and $b are equal, + 1 if $a is greater than $b, + -1 if $b is greater than $a. + Available as of PHP 7.