在发行版中:PHP 7.3.0 alpha 3,PHPStan 0.10,Yii 1.1.20和其他发行版,PHP Internals的最新产品,用于比较对象,一部分有用的工具等等。祝您阅读愉快!
__compareTo
__equals
class Example { /** * Returns: < 0 if $this is less than $other, * > 0 if $this is greater than $other, * == 0 if $this is equal to $other. */ public function __compareTo($other): int { ... } /** * @returns bool TRUE if $this is equal to $other, FALSE otherwise. */ public function __equals($other): bool { ... } }
感谢您的关注!如果您发现错误或不准确,请在PM中通知我。问题和建议写在邮件或推特上 。发送链接搜索所有摘要的链接← 先前版本:PHP文摘133
Source: https://habr.com/ru/post/zh-CN416543/More articles:上周第322页来自前端世界的新鲜材料摘要(2018年7月2日至8日)7月9日至15日在莫斯科举行的数字活动Wireshark的工作坊DOM对象的15个鲜为人知的属性和方法可再生能源常见问题解答,第2部分切身体会:开发,拉取请求,提交,软件技能Rostec离开Yota Devices,将向新华社订户提供具有两个屏幕的智能手机救援微型潜艇正在测试中幸福理论。 西瓜皮的规律和异常的正常性交易所交易终端开发方式如何变化:2018年的4个趋势All Articles