Kacarott to Programmer Humor@lemmy.ml · 1 month agoWhat the F#whatthefsharp.comexternal-linkmessage-square29fedilinkarrow-up188arrow-down11file-text
arrow-up187arrow-down1external-linkWhat the F#whatthefsharp.comKacarott to Programmer Humor@lemmy.ml · 1 month agomessage-square29fedilinkfile-text
minus-squareKacarottOPlinkfedilinkarrow-up6·1 month 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·16 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)