php - Use of undefined constant 0 - assumed ' 0' when using substr
迷茫
迷茫 2017-06-10 09:47:52
0
2
1061

In php version 5.6, use the substr function to intercept strings. code show as below

substr("123456", 0, 2);

AppearUse of undefined constant 0 - assumed ' 0'

The online solution is to modify error_reporting in php.ini to turn off notice. But what is this essential question? ? If you don't close this notice configuration, how to solve it? ?

迷茫
迷茫

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!