【文件属性】:
文件名称:php2go:使用Golang来实现PHP的常见内置函数
文件大小:20KB
文件格式:ZIP
更新时间:2021-02-03 14:15:01
go php GoGo
PHP2Go
使用Golang来实现PHP的通用内置函数。 已经实现了约140多种功能。
安装
go get github.com/syyongx/php2go
要求
达到1.10或更高。
PHP函数
日期/时间功能
time()
strtotime()
date ()
checkdate ()
sleep ()
usleep ()
字符串函数
strpos()
stripos()
strrpos ()
strripos ()
str_replace ()
ucfirst ()
lcfirst ()
ucwords ()
substr ()
strrev ()
number_format ()
chunk_split ()
str_word_count ()
wordwrap ()
strlen ()
mb_strlen ()
str_repeat ()
strstr ()
strtr ()
str_shuffle ()
trim ()
ltrim ()
rtrim ()
explode ()
strtoupper ()
strtolower ()
chr ()
ord ()
nl2
【文件预览】:
php2go-master
----.travis.yml(25B)
----php_windows.go(56B)
----php.go(46KB)
----php_test.go(10KB)
----LICENSE(1KB)
----php_unix.go(632B)
----.gitignore(39B)
----README.md(3KB)
----.editorconfig(92B)
----go.mod(42B)