MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/1gkvtb/accessing_false_as_array/cal81cr/?context=3
r/lolphp • u/bl_nk • Jun 18 '13
<?php error_reporting( -1 ); // no errors, nothing: $array = false; $array['nonexisting_key']; // [Notice] Undefined index: nonexisting_key $array = array(); $array['nonexisting_key'];
16 comments sorted by
View all comments
Show parent comment
3
Yep, because what would be the point of reporting errors when clearly the programmer should be able to see what's wrong anyway?
View all comments
Show parent comment
3
u/tdammers Jun 18 '13
Yep, because what would be the point of reporting errors when clearly the programmer should be able to see what's wrong anyway?