Kacarott@aussie.zone to Programmer Humor@lemmy.ml · 21 days agoWhat the F#whatthefsharp.comexternal-linkmessage-square28fedilinkarrow-up191arrow-down11file-text
arrow-up190arrow-down1external-linkWhat the F#whatthefsharp.comKacarott@aussie.zone to Programmer Humor@lemmy.ml · 21 days agomessage-square28fedilinkfile-text
minus-squareKacarott@aussie.zoneOPlinkfedilinkarrow-up6·21 days agoSome of the examples seem to be more “unintuitive for newbies”, but there are still some good ones in there
minus-squareFonzie!@ttrpg.networklinkfedilinkarrow-up1·19 hours agoYeah, just check the PHP section! My favourite is var_dump(true == 'bob') . PHP_EOL; // bool(true) var_dump('bob' == 0) . PHP_EOL; // bool(true) var_dump(true == 0) . PHP_EOL; // bool(false)
Some of the examples seem to be more “unintuitive for newbies”, but there are still some good ones in there
Yeah, just check the PHP section!
My favourite is
var_dump(true == 'bob') . PHP_EOL; // bool(true) var_dump('bob' == 0) . PHP_EOL; // bool(true) var_dump(true == 0) . PHP_EOL; // bool(false)