假设我们有这个代码$test = 'text';.echo $test[0]和之间有什么区别echo $test{0}?结果是一样的.
$test = 'text';
echo $test[0]
echo $test{0}
处理包含类似字符数组的字符串的变量是一个好习惯吗?
php string
php ×1
string ×1