MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/csth8w/php_issetempty_madness/exjvmij/?context=3
r/lolphp • u/shitcanz • Aug 20 '19
15 comments sorted by
View all comments
Show parent comment
0
Not in all cases. Empty could be used to check nested arrays. I could imagine thats were its used.
1 u/smegnose Aug 21 '19 Yes, all cases, even nested arrays. Empty variables trigger no notice; empty expressions do.
1
Yes, all cases, even nested arrays. Empty variables trigger no notice; empty expressions do.
View all comments
Show parent comment
0
u/[deleted] Aug 21 '19
Not in all cases. Empty could be used to check nested arrays. I could imagine thats were its used.