In PHP 7
we have a new operator, spaceship operator <=>
, and I
found it very similar (if not the same) to
strcmp()
.
Is there any
difference between
them?
Edit: Im
asking the difference between them both, not refered href="https://stackoverflow.com/questions/30365346/what-is-the-spaceship-operator-in-php-7">What
is <=> (the 'Spaceship' Operator) in PHP 7? or href="https://stackoverflow.com/questions/3737139/reference-what-does-this-symbol-mean-in-php">What
is <=> (the 'Spaceship' Operator) in PHP 7?
No comments:
Post a Comment