<?php $string='king'; $string{1}=''; echo $string
Warning: Cannot assign an empty string to a string offset in E:\phpstudy\demo1\.....
这个代码很简单应该没有问题,视频教学中能执行,但是我的电脑就是执行报错,请问是配置少了什么引起的吗?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号