Files
framework/Library/Think/Config/Driver/Ini.php
2013-04-15 10:48:09 +08:00

22 lines
834 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);
}
}
}