From d4545271e0d7a4532710f159b26543b051884979 Mon Sep 17 00:00:00 2001 From: Peter Cowburn Date: Fri, 17 Apr 2015 14:18:14 +0000 Subject: [PATCH] Add spaceship operator to operators list -- Patch by Pasindu (ppasindud@gmail.com) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336563 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/language/operators.xml b/language/operators.xml index a1606920de..b6c0695910 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1281,6 +1281,14 @@ Expression: 0 = -4 << 62 Greater than or equal to &true; if $a is greater than or equal to $b. + + $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 + +