bariew / phptools
用于网页开发的工具
1.0.0
2015-02-12 12:51 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-09-16 15:05:00 UTC
README
- FileModel - 用于从文件中提取和保存数据。
$model = new \bariew\phptools\FileModel("/path/to/file.php");
var_dump($model->data); // array(... file content);
$model->set('myKey', 'myValue'); // now we have our value in file content array;
$model->set(['my', 'multidimensional', 'key'], ['myValue']); // putting nested key into depth of file content array.