mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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
This commit is contained in:
parent
f940e90ad6
commit
d4545271e0
1 changed files with 8 additions and 0 deletions
|
@ -1281,6 +1281,14 @@ Expression: 0 = -4 << 62
|
|||
<entry>Greater than or equal to </entry>
|
||||
<entry>&true; if <varname>$a</varname> is greater than or equal to <varname>$b</varname>.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>$a <=> $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
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue