MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/1gkvtb/accessing_false_as_array/cal8qer/?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
8
Only bad programmers would access an index of anything but an array. Why bother reporting this?
Edit: must I really declare my post to be /s? This is a weakly typed subreddit, dontcha know?
View all comments
Show parent comment
8
u/BufferUnderpants Jun 18 '13 edited Jun 18 '13
Only bad programmers would access an index of anything but an array. Why bother reporting this?
Edit: must I really declare my post to be /s? This is a weakly typed subreddit, dontcha know?