A bit of a silly question for more advanced programmers, but In my quest to learn php I have come across return statements that involve a ? symbol with values of 0, -1 and 1 such as:
return ($a > $b) ? -1 : 1;
or
[$index ? 0 : 1];
Im trying to understand the logic of what this statement does and why it is used, any help will go a long way, thanks