基于Go实现PHP常用函数,源码放在github上。欢迎一起加入,欢迎Star、Fork
- 目前只实现了字符串相关的函数。
- 数组、文件等等相关函数,开发中每天更新一点点。
安装
- 字符串相关包
go get -u github.com/Echo-Mr-Pengw/go-to-php/str
-
数组相关包
-
其它包
开发中
…
字符串相关函数
go-to-php封装函数 | 对应的PHP函数 |
---|---|
Pimplode(glue string , pieces interface{}) string |
implode |
Pjoin(glue string , pieces interface{}) string |
implode的别名,同Pimplode |
Pexplode(delimiter , str string , limit int) []string |
explode |
Pstrlen(str string) int</ |