php/doc-en
Wrong result in complex comparisons switch's example's result
Aperta
#1682 aperta il 5 lug 2022
good first issue
Metriche repository
- Star
- (596 stelle)
- Metriche merge PR
- (Merge medio 99g 23h) (90 PR mergiate in 30 g)
Descrizione
From manual page: https://php.net/control-structures.switch
Where it reads: For more complex comparisons, the value true may be used as the switch value. Or, alternatively, if-else blocks instead of switch.
The example's result is:
// Prints "C"
Shouldn't it be?:
// Prints "B"