Problem for beginners - phpstorm cannot delete a certain character in the string and reports an error. How to solve it?
Wilson
Wilson 2018-11-18 12:32:06
0
0
734
<?php

$string='king';

$string{1}='';

echo $string

Warning: Cannot assign an empty string to a string offset in E:\phpstudy\demo1\....

This code is very simple and should be no problem. It can be executed in the video tutorial, but I My computer just reports an error when executing. Is it caused by missing configuration?

Wilson
Wilson

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template