# XiunoPHP 入門
## 什么是 XiunoPHP 4.0 ?

**XiunoPHP - 保持 PHP 原來的味道! - Keep the PHP native style**
XiunoPHP 并不是一個框架,它只是初始化了一些常用的全局變量,增加了一些常用的函數,可以認為是對 PHP 的一些功能的補充。合并后,它只有一個文件 xiunophp.min.php,可以不做任何配置,直接 include 后就可以使用。
你可以用任意姿勢(過程式、面向對象、函數式)使用它,甚至和其他框架混用。在你需要某個函數和變量的時候,它剛好存在,用它就 OK 了。
### 如何獲取?
XiunoPHP 4.0 基于寬松的 MIT 協議發布,所以您可以最大限度的使用它。
下載地址:https://www.moqu8.com/forum.php?mod=viewthread&tid=11128
解壓后會得到一個目錄 xiunophp,里面包含一個合并后的文件:xiunophp.min.php,這個文件可以存放在任何地方。
### 如何使用?
include 后直接使用里面的函數即可。
```
<pre class="calibre11">```
<?php
include './xiunophp.min.php';
$s = xn_encrypt('hello, world!');
echo $s;
?>
```
```
- XiunoPHP 入門
- 什么是 XiunoPHP?
- 關于 URL 格式
- 編碼規范
- 全局變量
- $starttime
- $time
- $conf
- $ip
- $longip
- $ajax
- $method
- $db
- $cache
- $errno
- $errstr
- 數據庫函數
- DB 配置
- db_insert()
- db_create()
- db_replace()
- db_update()
- db_delete()
- db_find_one()
- db_find()
- db_count()
- db_maxid()
- db_connect()
- db_truncate()
- db_sql_find()
- db_sql_find_one()
- db_exec()
- db_new()
- db_close()
- 緩存函數
- CACHE 配置
- cache_set()
- cache_get()
- cache_delete()
- cache_truncate()
- cache_new()
- 數組增強
- array_value()
- array_filter_empty()
- array_addslashes()
- array_stripslashes()
- array_htmlspecialchars()
- array_trim()
- array_diff_value()
- array_assoc_slice()
- arrlist_multisort()
- arrlist_cond_orderby()
- arrlist_key_values()
- arrlist_values()
- arrlist_change_key()
- arrlist_chunk()
- 雜項函數
- xn_strlen()
- xn_substr()
- xn_urlencode()
- xn_urldecode()
- xn_json_encode()
- xn_json_decode()
- xn_encrypt()
- xn_decrypt()
- xn_message()
- xn_error()
- xn_log()
- xn_txt_to_html()
- xn_rand()
- xn_is_writable()
- humandate()
- humannumber()
- humansize()
- param()
- lang()
- url()
- pagination()
- is_robot()
- http_get()
- http_post()
- https_get()
- https_post()
- http_multi_get()
- file_replace_var()
- file_get_contents_try()
- file_put_contents_try()
- in_string()
- file_ext()
- file_pre()
- file_name()
- http_url_path()
- glob_recursive()
- rmdir_recusive()
- copy_recusive()
- _GET() _POST() _COOKIE() ...