php - 使用substr 出现Use of undefined constant 0 - assumed ' 0'
迷茫
迷茫 2017-06-10 09:47:52
0
2
1083

php版本5.6中使用substr函数 进行字符串截取。代码如下

substr("123456", 0, 2);

出现Use of undefined constant 0 - assumed ' 0'

网上解决方案是修改 php.ini 中error_reportingnotice关闭。但是这个本质问题是什么?? 如果不关闭这个notice配置,怎么解决??

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!