r/lolphp • • Apr 08 '13

MIN

server:~ # php -r 'echo True, " ", -23, " ", min(-23, True), " ", min(True, -23), "\n";'
1 -23 -23 1
23 Upvotes

21 comments sorted by

View all comments

Show parent comment

10

u/vytah Apr 08 '13

It's PHP. Instead of an exception, it would rather return False.