php2go
v0.9.9
使用Golang實作PHP的常用內建函數。已實現約140多個功能。
去取得 github.com/syyongx/php2go
轉到 1.10 或更高版本。
時間() 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()str_repeat()strstr()strtr()strstr()strtr()str )str_shuffle()trim()ltrim()rtrim()explode()strtoupper()strtolower()chr()ord()nl2br()json_encode()json_decode()addslashes()stripslashes()quotemeta()htmlentities()html_addslashes()stripslashes()quotemeta()htmlentities()html_entity0 ()md5()md5_file()sha1()sha1_file()crc32()levenshtein()similar_text()soundex()parse_str()
mb_strlen() mb_strtoupper()
base64_encode() base64_decode()parse_url()urlencode()urldecode()rawurlencode()rawurldecode()http_build_query()
數組填充() array_flip()array_keys()array_values()array_merge()array_chunk()array_pad()array_slice()array_rand()array_column()array_push()array_pop()array_unshshift( )in_array()
絕對值() rand()round()floor()ceil()pi()max()min()decbin()bindec()hex2bin()bin2hex()dechex()hexdec()decoct()Octdec()base_convert()is_nan( )
random_bytes()random_int()
統計() pathinfo()file_exists()is_file()is_dir()filesize()file_put_contents()file_get_contents()unlink()delete()copy()is_read()is_writeable()rename()touch()mkdir()getcwd()realpath()getcwd()path()getcwd()path()getcwd()path()getcwd()path()getcwd()path()getcwd()path()getcwd()path()getcwd()path()getcwd()path()getcwd()path()getcwd()path() )basename()chmod()chown()fclose()filemtime()fgetcsv()glob()
空()is_numeric()
執行() 系統()passthru()
取得主機名稱() gethostbyname()gethostbynamel()gethostbyaddr()ip2long()long2ip()
迴聲() uniqid()exit()die()getenv()putenv()memory_get_usage()memory_get_peak_usage()version_compare()zip_open() 三元(條件布爾,trueVal,falseVal 介面{})介面{}
PHP2Go 原始碼根據 MIT 許可證獲得許可。