$max = ($value > $max) ? $value : $max
If $value is greater than $max, then set $max equal to $value. Otherwise set it equal to $max (i.e., no change). In short, $max is set to the larger of $value and $max.
[Note the added $. Without it PHP would probably complain and then set $max to the string "max".]