PHP 8.5.0 Alpha 4 available for testing

Voting

: max(nine, eight)?
(Example: nine)

The Note You're Voting On

instatiendaweb at gmail dot com
4 years ago
//incorrect
$a = true ? 0 : true ? 1 : 2; // (true ? 0 : true) ? 1 : 2 = 2
//Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
//correct
$a = (true ? 0 : true) ? 1 : 2; // (true ? 0 : true) ? 1 : 2 = 2

==> correction documentation.

<< Back to user notes page

To Top