PHP Empty String vs Zero

Watch this! PHP treats empty string and zero as falsy. See empty('') vs empty(0) vs empty('0'). The differences are INSANE!

#php #phptricks #codingtips #programmingtutorial #phpempty #falsyvalues #phpfunctions #phpquiz #codingchallenge #phpshorts #phpvalidation #truthyfalsy

https://www.youtube.com/watch?v=Z5z7MPhN07Y

PHP Empty String vs Zero #phpquiz

YouTube

Nullish Coalescing vs Logical OR?!

?? and || are DIFFERENT! Nullish coalescing only checks null/undefined. Logical OR checks ALL falsy values. 0 and '' behave differently! This matters!

#javascript #javascripttricks #nullishcoalescing #logicalor #falsyvalues #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #operatordifferences #advancedjavascript

https://www.youtube.com/watch?v=pd6wpNTvbiM

Nullish Coalescing vs Logical OR?! #javascriptwtf

YouTube

PHP array_filter Without Callback

PHP just did this! array_filter() without callback removes falsy values. See what gets filtered. Perfect for data cleaning!

#php #phptricks #codingtips #programmingtutorial #phparrayfilter #arrayfunctions #falsyvalues #phpquiz #codingchallenge #phpshorts #arraymanipulation #phparrays

https://www.youtube.com/watch?v=Ia0xkQPL1RA

PHP array_filter Without Callback #programmingtutorial

YouTube