php2go 使用 Go 实现 PHP 常用内置函数开源项目

我要开发同款
匿名用户2018年10月29日
28阅读
开发技术GO语言
所属分类Google Go、其他开发相关、程序开发
授权协议MIT

作品详情

php2go——使用Golang实现PHP常用内置函数,目前已经实现了140+函数。

下载&安装

https://github.com/syyongx/php2go

go get github.com/syyongx/php2goPHPFunctionsDate/TimeFunctionstime()strtotime()date()checkdate()sleep()usleep()StringFunctionsstrpos()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()nl2br()json_encode()json_decode()addslashes()stripslashes()quotemeta()htmlentities()html_entity_decode()md5()md5_file()sha1()sha1_file()crc32()levenshtein()similar_text()soundex()parse_str()URLFunctionsbase64_encode()base64_decode()parse_url()urlencode()urldecode()rawurlencode()rawurldecode()http_build_query()Array(Slice/Map)Functionsarray_fill()array_flip()array_keys()array_values()array_merge()array_chunk()array_pad()array_slice()array_rand()array_column()array_push()array_pop()array_unshift()array_shift()array_key_exists()array_combine()array_reverse()implode()MathematicalFunctionsabs()rand()round()floor()ceil()pi()max()min()decbin()bindec()hex2bin()bin2hex()dechex()hexdec()decoct()Octdec()base_convert()is_nan()Directory/FilesystemFunctionsstat()pathinfo()file_exists()is_file()is_dir()filesize()file_put_contents()file_get_contents()unlink()delete()copy()is_readable()is_writeable()rename()touch()mkdir()getcwd()realpath()basename()chmod()chown()fclose()filemtime()fgetcsv()disk_free_space()disk_total_space()glob()umask()VariablehandlingFunctionsempty()is_numeric()ProgramexecutionFunctionsexec()system()passthru()NetworkFunctionsgethostname()gethostbyname()gethostbynamel()gethostbyaddr()ip2long()long2ip()Misc.Functionsecho()uniqid()exit()die()getenv()putenv()memory_get_usage()version_compare()zip_open()Ternary(condition bool, trueVal, falseVal interface{}) interface{}LICENSE

php2gosourcecodeislicensedunderthe MIT Licence.

查看全文
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论