//base_path()获取当前的绝对路径
$path=base_path().'\config\web.php';

$str='abcdefg'; //要声明的字符串

file_put_contents($path,$str);//把字符串内容存储到web.php中。

  

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2021-12-02
  • 2021-09-10
猜你喜欢
  • 2022-12-23
  • 2021-08-16
  • 2021-06-11
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案