Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

spaceship operator

Return 0 if values on either side are equal
Return 1 if the value on the left is greater
Return -1 if the value on the right is greater
 
PREVIOUS NEXT
Tagged: #spaceship #operator
ADD COMMENT
Topic
Name
3+5 =