PHPverse 2025

Voting

: min(one, four)?
(Example: nine)

The Note You're Voting On

Babak Bandpey
11 years ago
I believe that the double negation !! can perform the same task with the same result if your PHP is not up2date

var_dump(!!1, !!0, !!"test", !!"");

outputs:
boolean true

boolean false

boolean true

boolean false

May the life be good to you.

<< Back to user notes page

To Top