php/doc-en
Wrong result in complex comparisons switch's example's result
Offen
#1.682 geöffnet am 05.07.2022
good first issue
Repository-Metriken
- Stars
- (596 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 99T 23h) (90 gemergte PRs in 30 T)
Beschreibung
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"