condense spaceship operator result description

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336601 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Peter Cowburn 2015-04-20 14:08:54 +00:00
parent 2e1fd3bdcc
commit fe67d205e2

View file

@ -1284,10 +1284,11 @@ Expression: 0 = -4 << 62
<row>
<entry>$a &lt;=&gt; $b</entry>
<entry>Spaceship Operator</entry>
<entry>It returns 0 if <varname>$a</varname> and <varname>$b</varname> are equal,
if <varname>$a</varname> is greater than <varname>$b</varname> then it returns 1,
if <varname>$b</varname> is greater than <varname>$a</varname> then ir returns -1.
Will be available as of PHP 7.
<entry>
0 if <varname>$a</varname> and <varname>$b</varname> are equal,
1 if <varname>$a</varname> is greater than <varname>$b</varname>,
-1 if <varname>$b</varname> is greater than <varname>$a</varname>.
Available as of PHP 7.
</entry>
</row>
</tbody>