我有一个包含数组数据的 .php 文件,如下所示:
$config['setting_one'] = true;
$config['setting_two'] = "some string";
$config['setting_three']['option1'] = "some string";
找到该行开头$config['setting_two']
并将该行替换为的正确方法是什么$config['setting_two'] = "new string";
(新字符串将来自一个帖子值)。