The comment critizing matheo's code while making some perhaps interesting statements about code efficiency missed the point completely.
echo 0; is different then echo false;
echo 0 will print a 0
echo false will print nothing.
So, the ternary operator technique was simply assuring there would be a displayable value.
If anything matheo showed prowess as a programmer and that he was knowledgable about nuances in php programming by knowing how to use the ternary operator to provide values true and false that are displayable.
Perhaps a clearer example of this would have been:
$is_a_bigger = ($a > $b) ? "true" : "false" ;
It is true that the result of a logic expression is a value like any other, it is a value though of a specific type which if using === can be checked for boolean logic which may or may not be what a programmer wants.
The general caveat if we are going to pontificate to programmers is to know exacly what you are getting from any operation and know the consequences of doing so. Which I think matheo knew quite well, and appropriately accounted for.