php2go
v0.9.9
Utilice Golang para implementar las funciones integradas comunes de PHP. Se han implementado alrededor de 140+ funciones.
Vaya a github.com/syyongx/php2go
Vaya a 1.10 o superior.
tiempo() strtotime()fecha()verificar fecha()dormir()nosotrosdormir()
strpos() stripos()strrpos()strripos()str_replace()ucfirst()lcfirst()ucwords()substr()srrev()number_format()chunk_split()str_word_count()wordwrap()strlen()str_repeat()strstr()strtr( )str_shuffle()recortar()ltrim()rtrim()explotar()strt oupper()strtolower()chr()ord()nl2br()json_encode()json_decode()addslashes()stripslashes()quotemeta()htmlentities()html_entity_decode()md5()md5_file()sha1()sha1_file()crc32( )levenshtein()texto_similar()soundex()parse_str()
mb_strlen()mb_strtoupper()
base64_encode() base64_decode()parse_url()urlencode()urldecode()rawurlencode()rawurldecode()http_build_query()
matriz_relleno() 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( )en_array()
abs() rand()round()floor()ceil()pi()max()min()decbin()bindec()hex2bin()bin2hex()dechex()hexdec()decoct()Octdec()base_convert()is_nan( )
bytes_aleatorios()int_aleatorio()
estadística() pathinfo()file_exists()is_file()is_dir()filesize()file_put_contents()file_get_contents()unlink()eliminar()copia()is_readable()is_writeable()rename()touch()mkdir()getcwd()realpath( )nombrebase()chmod()chown()fclose()filemtime()fgetcsv()glob()
vacío()es_numeric()
ejecutivo() sistema()paso()
obtener nombre de host() gethostbyname()gethostbynamel()gethostbyaddr()ip2long()long2ip()
eco() uniqid()salir()die()getenv()putenv()memory_get_usage()memory_get_peak_usage()version_compare()zip_open() Interfaz ternaria (condición bool, trueVal, falseVal interfaz {}) {}
El código fuente de PHP2Go tiene la licencia MIT.