Downloads
Stars
Version
local:
mysql:
host: 127.0.0.1
port: 3306
dev:
mysql:
host: 127.0.0.1
port: 3306
## 读取
```php
<?php
$file = 'config.yml';
Yaml::getInstance()->load($file);
<?php
$file = 'config.yml';
$data = Yaml::getInstance()->save($file, $data);
$data['mysql']['port'] = 3307;
yml_write($file,$data);