php2go
v0.9.9
Golang を使用して、PHP の一般的な組み込み関数を実装します。約140以上の機能が実装されています。
github.com/syyongx/php2go を取得してください
1.10 以降に進みます。
時間() strtotime()date()checkdate()sleep()usleep()
strpos() tripos()strrpos()strripos()str_replace()ucfirst()lcfirst()ucwords()substr()strrev()number_format()chunk_split()str_word_count()wordwrap()strlen()str_repeat()strstr()strtr( )str_shuffle()trim()ltrim()rtrim()explode()strt ouper()strto lower()chr()ord()nl2br()json_encode()json_decode()addslashes()stripslashes()quotemeta()htmlentiti es()html_entity_decode()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_fill() array_flip()array_keys()array_values()array_merge()array_chunk()array_pad()array_slice()array_rand()array_column()ar ray_push()array_pop()array_unshift()array_shift()array_key_exists()array_combine()array_reverse()implode()in_array()
腹筋() rand()round()floor()ceil()pi()max()min()decbin()bindec()hex2bin()bin2hex()dechex()hexdec()decoct()Octdec()base_convert()is_nan( )
ランダムバイト()ランダム整数()
統計() pathinfo()file_exists()is_file()is_dir()filesize()file_put_contents()file_get_contents()unlink()delete()copy()is_read able()is_writeable()rename()touch()mkdir()getcwd()realpath()basename()chmod()chown()fclose()filemtime()fgetcsv()glob()
empty()is_numeric()
実行() システム()パススルー()
getホスト名() gethostbyname()gethostbynamel()gethostbyaddr()ip2long()long2ip()
エコー() uniqid()exit()die()getenv()putenv()memory_get_usage()memory_get_peak_usage()version_compare()zip_open() Ternary(条件ブール、trueVal、falseVal インターフェース{}) インターフェース{}
PHP2Go のソース コードは MIT ライセンスに基づいてライセンスされています。