In the release: PHP 7.3.0 alpha 3, PHPStan 0.10, Yii 1.1.20 and other releases, a fresh offer from PHP Internals comparing objects, a portion of useful tools, and much more.Enjoy reading!
__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 { ... } }
Thanks for attention!If you notice an error or inaccuracy - please inform the PM .Write questions and suggestions by mail or twitter .Send linkSearch links for all digests← Previous release: PHP Digest number 133
Source: https://habr.com/ru/post/416543/More articles:The digest of fresh materials from the world of the frontend for the last week №322 (July 2 - 8, 2018)Digital events in Moscow from July 9 to 15Practical techniques of working in Wireshark15 obscure properties and methods of DOM objectsRenewable Questions and Answers, Part 2Personal experience: development, pull requests, commits, soft skills"Rostec" leaves the company Yota Devices, a smartphone with two screens will be offered to subscribers of the Xinhua news agencyRescue mini submarine is being testedThe theory of happiness. The law of watermelon peel and the normality of abnormalityHow are changing approaches to the development of terminals for trading on the stock exchange: 4 trends in 2018All Articles