mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
less lying about spaceship operator return values
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336683 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
397dbbaef7
commit
9b3dd4b20b
1 changed files with 3 additions and 3 deletions
|
@ -1285,9 +1285,9 @@ Expression: 0 = -4 << 62
|
|||
<entry>$a <=> $b</entry>
|
||||
<entry>Spaceship Operator</entry>
|
||||
<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>.
|
||||
An <type>integer</type> less than, equal to, or greater than zero when
|
||||
<varname>$a</varname> is respectively less than, equal to, or greater
|
||||
than <varname>$b</varname>.
|
||||
Available as of PHP 7.
|
||||
</entry>
|
||||
</row>
|
||||
|
|
Loading…
Reference in a new issue