使用花括号删除字符串中单个字符
<?php
$username = "intozhou";
#删除一个字符
$username{0} = '';抛出 Warning: Cannot assign an empty string to a string offset in xxx.php
47
收起
正在回答 回答被采纳积分+1
6回答
<?php
$username = "intozhou";
#删除一个字符
$username{0} = '';抛出 Warning: Cannot assign an empty string to a string offset in xxx.php
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星