Article 6BB9 What to Expect When You're Expecting: PHP 7, Part 1 (Engine Yard)

What to Expect When You're Expecting: PHP 7, Part 1 (Engine Yard)

by
corbet
from LWN.net on (#6BB9)
The Engine Yard blog has anintroduction to the changes coming in the PHP 7 release."My personal favorite addition to PHP 7 is the addition of theCombined Comparison Operator, <=>,otherwise known as thespaceship operator. [...] It effectively works like strcmp(), orversion_compare(), returning -1 if the left operand is smaller than theright, 0 if they are equal, and 1 if the left is greater than theright. The major difference being that it can be used on any two operands,not just strings, but also integers, floats, arrays, etc."
External Content
Source RSS or Atom Feed
Feed Location http://lwn.net/headlines/rss
Feed Title LWN.net
Feed Link https://lwn.net/
Reply 0 comments