【发布时间】:2014-09-25 12:06:31
【问题描述】:
我有“array()”文件,我需要从末尾追加特定字符中的数据,例如:从末尾追加到 -3 char
<?php
//arr_data.php
return array(
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3',
'key4' => 'value4',
//insert new data here
);
我知道,可以使用 Filesystem 附加到文件末尾:
Filesystem::append( "/dir/path", "'key5' => 'value5',")
但是如何从末尾追加特定的字符?
谢谢,
【问题讨论】:
标签: php file laravel laravel-4