Why does PHP not complain when I treat a null value as an array like this?

后端 未结 3 1665
你的背包
你的背包 2020-12-01 10:11

In PHP, I have error_reporting set to report everything including notices.

Why does the following not throw any notices, errors or anything else?

$my         


        
3条回答
  •  一向
    一向 (楼主)
    2020-12-01 11:15

    There is an active bug report started at 2006.

    And in documentation it is a notice about this in String section.

提交回复
热议问题