php2go:使用Golang来实现PHP的常见内置函数
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