### 獲取IP信息
為空則獲取當前IP,IP則顯示當前IP歸屬
```
cp::re('ip');
echo ip(); //輸出當前訪問者IP
var_dump(ip('116.128.134.167')); //輸出當前IP詳細信息
//打印當前IP歸屬數組
//array(13) {
// ["ip"]=>
// string(15) "116.128.134.167"
// ["country"]=>
// string(6) "中國"
// ["area"]=>
// string(0) ""
// ["region"]=>
// string(6) "上海"
// ["city"]=>
// string(6) "上海"
// ["county"]=>
// string(2) "XX"
// ["isp"]=>
// string(6) "聯通"
// ["country_id"]=>
// string(2) "CN"
// ["area_id"]=>
// string(0) ""
// ["region_id"]=>
// string(6) "310000"
// ["city_id"]=>
// string(6) "310100"
// ["county_id"]=>
// string(2) "xx"
// ["isp_id"]=>
// string(6) "100026"
//}
```