Kacarott@aussie.zone to Programmer Humor@lemmy.ml · 2 months agoWhat the F#whatthefsharp.comexternal-linkmessage-square17fedilinkarrow-up12arrow-down10file-text
arrow-up12arrow-down1external-linkWhat the F#whatthefsharp.comKacarott@aussie.zone to Programmer Humor@lemmy.ml · 2 months agomessage-square17fedilinkfile-text
minus-squareKacarott@aussie.zoneOPlinkfedilinkarrow-up1·2 months 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·27 days 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)