That’s the ternary operator.
$test ? $a : $b
This statement will return $a if $test is true and $b otherwise. So in your example, the expression will return false if $spass has less than 8 characters, and true otherwise.
Here’s a video lesson on Envato Tuts+.