Files
framework/Library/Think/Config/Driver/Ini.php
2015-01-16 22:42:51 +08:00

23 lines
835 B
PHP

<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://topthink.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Config\Driver;
class Ini {
public function parse($config){
if(is_file($config)) {
return parse_ini_file($config,true);
}else{
return parse_ini_string($config,true);
}
}
}