{"id":20298240,"url":"https://github.com/serkanalgur/phpfuncs","last_synced_at":"2025-10-18T12:25:28.963Z","repository":{"id":55641248,"uuid":"315127364","full_name":"serkanalgur/phpfuncs","owner":"serkanalgur","description":"PHP functions implementation to Golang. This package is for the Go beginners who have developed PHP code before. You can use PHP like functions in your app, module etc. when you add this module to your project.","archived":false,"fork":false,"pushed_at":"2022-07-30T22:05:07.000Z","size":178,"stargazers_count":58,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T09:11:26.065Z","etag":null,"topics":["go","golang","php","php-functions"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/serkanalgur/phpfuncs","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serkanalgur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"funding.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"serkanalgur"}},"created_at":"2020-11-22T20:37:04.000Z","updated_at":"2024-11-08T03:59:31.000Z","dependencies_parsed_at":"2022-08-15T05:20:14.188Z","dependency_job_id":null,"html_url":"https://github.com/serkanalgur/phpfuncs","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serkanalgur%2Fphpfuncs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serkanalgur%2Fphpfuncs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serkanalgur%2Fphpfuncs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serkanalgur%2Fphpfuncs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serkanalgur","download_url":"https://codeload.github.com/serkanalgur/phpfuncs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248403215,"owners_count":21097449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","php","php-functions"],"created_at":"2024-11-14T16:07:40.087Z","updated_at":"2025-10-18T12:25:23.908Z","avatar_url":"https://github.com/serkanalgur.png","language":"Go","funding_links":["https://github.com/sponsors/serkanalgur"],"categories":[],"sub_categories":[],"readme":"# PHP Functions for Golang - phpfuncs\n\n[![PkgGoDev](https://pkg.go.dev/badge/serkanalgur/phpfuncs)](https://pkg.go.dev/github.com/serkanalgur/phpfuncs) [![Go Report Card](https://goreportcard.com/badge/github.com/serkanalgur/phpfuncs)](https://goreportcard.com/report/github.com/serkanalgur/phpfuncs) [![Build Status](https://travis-ci.org/serkanalgur/phpfuncs.svg?branch=main)](https://travis-ci.org/serkanalgur/phpfuncs) [![codecov](https://codecov.io/gh/serkanalgur/phpfuncs/branch/main/graph/badge.svg?token=WETVWX4GA3)](https://codecov.io/gh/serkanalgur/phpfuncs) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fserkanalgur%2Fphpfuncs.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fserkanalgur%2Fphpfuncs?ref=badge_shield)\n\nPHP functions implementation to Golang. This package is for the Go beginners who have developed PHP code before. You can use PHP like functions in your app, module etc. when you add this module to your project.\n\n:bangbang: **THIS MODULE IS UNDER DEVELOPMENT. PLEASE USE CAUTIOUSLY** :bangbang:\n\n- [PHP Functions for Golang - phpfuncs](#php-functions-for-golang---phpfuncs)\n  - [Installation](#installation)\n  - [Tests](#tests)\n  - [Proper Documentation](#proper-documentation)\n  - [Functions List](#functions-list)\n    - [func Abs](#func-abs)\n    - [func Acos](#func-acos)\n    - [func Acosh](#func-acosh)\n    - [func Addslashes](#func-addslashes)\n    - [func Array](#func-array)\n    - [func ArrayCountValues](#func-arraycountvalues)\n    - [func ArrayFlip](#func-arrayflip)\n    - [func ArrayKeys](#func-arraykeys)\n    - [func ArrayMerge](#func-arraymerge)\n    - [func ArrayPush](#func-arraypush)\n    - [func ArrayReverse](#func-arrayreverse)\n    - [func ArrayValues](#func-arrayvalues)\n    - [func Asin](#func-asin)\n    - [func Asinh](#func-asinh)\n    - [func Atan](#func-atan)\n    - [func Atan2](#func-atan2)\n    - [func Atanh](#func-atanh)\n    - [func Base64Decode](#func-base64decode)\n    - [func Base64Encode](#func-base64encode)\n    - [func BaseConvert](#func-baseconvert)\n    - [func Basename](#func-basename)\n    - [func Bin2Hex](#func-bin2hex)\n    - [func ByteCountIEC](#func-bytecountiec)\n    - [func Ceil](#func-ceil)\n    - [func Chgrp](#func-chgrp)\n    - [func Chmod](#func-chmod)\n    - [func Chown](#func-chown)\n    - [func Copy](#func-copy)\n    - [func Cos](#func-cos)\n    - [func Cosh](#func-cosh)\n    - [func Count](#func-count)\n    - [func DecBin](#func-decbin)\n    - [func DecHex](#func-dechex)\n    - [func DecOct](#func-decoct)\n    - [func Deg2Rad](#func-deg2rad)\n    - [func Delete](#func-delete)\n    - [func Die](#func-die)\n    - [func DirName](#func-dirname)\n    - [func Echo](#func-echo)\n    - [func Escapeshellarg](#func-escapeshellarg)\n    - [func Escapeshellcmd](#func-escapeshellcmd)\n    - [func  Exec](#func--exec)\n    - [func Exit](#func-exit)\n    - [func Exp](#func-exp)\n    - [func ExpM1](#func-expm1)\n    - [func Explode](#func-explode)\n    - [func FClose](#func-fclose)\n    - [func FMod](#func-fmod)\n    - [func FOpen](#func-fopen)\n    - [func FPuts](#func-fputs)\n    - [func FRead](#func-fread)\n    - [func FWrite](#func-fwrite)\n    - [func FileExists](#func-fileexists)\n    - [func FileGetContents](#func-filegetcontents)\n    - [func FileMime](#func-filemime)\n    - [func FilePerms](#func-fileperms)\n    - [func FilePutContents](#func-fileputcontents)\n    - [func FileSize](#func-filesize)\n    - [func FileType](#func-filetype)\n    - [func Floor](#func-floor)\n    - [func Glob](#func-glob)\n    - [func Hex2Bin](#func-hex2bin)\n    - [func HexDec](#func-hexdec)\n    - [func HtmlspecialChars](#func-htmlspecialchars)\n    - [func HtmlspecialCharsdecode](#func-htmlspecialcharsdecode)\n    - [func HyPot](#func-hypot)\n    - [func Implode](#func-implode)\n    - [func InArray](#func-inarray)\n    - [func IntDiv](#func-intdiv)\n    - [func IsArray](#func-isarray)\n    - [func IsDir](#func-isdir)\n    - [func IsExecutable](#func-isexecutable)\n    - [func IsFile](#func-isfile)\n    - [func IsFinite](#func-isfinite)\n    - [func IsInFinite](#func-isinfinite)\n    - [func IsLink](#func-islink)\n    - [func IsNan](#func-isnan)\n    - [func IsReadable](#func-isreadable)\n    - [func IsURL](#func-isurl)\n    - [func IsWritable](#func-iswritable)\n    - [func IsWriteable](#func-iswriteable)\n    - [func Join](#func-join)\n    - [func LcgValue](#func-lcgvalue)\n    - [func Link](#func-link)\n    - [func Log](#func-log)\n    - [func Log10](#func-log10)\n    - [func Log1P](#func-log1p)\n    - [func Ltrim](#func-ltrim)\n    - [func MD5](#func-md5)\n    - [func MD5File](#func-md5file)\n    - [func Max](#func-max)\n    - [func MbStrtolower](#func-mbstrtolower)\n    - [func MbStrtoupper](#func-mbstrtoupper)\n    - [func Min](#func-min)\n    - [func MkDir](#func-mkdir)\n    - [func Nl2br](#func-nl2br)\n    - [func Now](#func-now)\n    - [func OctDec](#func-octdec)\n    - [func Pi](#func-pi)\n    - [func Pow](#func-pow)\n    - [func Print](#func-print)\n    - [func PrintR](#func-printr)\n    - [func Rad2Deg](#func-rad2deg)\n    - [func Rand](#func-rand)\n    - [func ReadLink](#func-readlink)\n    - [func RealPath](#func-realpath)\n    - [func Rename](#func-rename)\n    - [func RmDir](#func-rmdir)\n    - [func Round](#func-round)\n    - [func Rtrim](#func-rtrim)\n    - [func Sha1](#func-sha1)\n    - [func Sha1File](#func-sha1file)\n    - [func  ShellExec](#func--shellexec)\n    - [func Sin](#func-sin)\n    - [func Sinh](#func-sinh)\n    - [func Sizeof](#func-sizeof)\n    - [func Sleep](#func-sleep)\n    - [func Sort](#func-sort)\n    - [func Sqrt](#func-sqrt)\n    - [func Stat](#func-stat)\n    - [func StrRepeat](#func-strrepeat)\n    - [func StrReplace](#func-strreplace)\n    - [func StringWithCharset](#func-stringwithcharset)\n    - [func Strtolower](#func-strtolower)\n    - [func Strtoupper](#func-strtoupper)\n    - [func SymLink](#func-symlink)\n    - [func Tan](#func-tan)\n    - [func Tanh](#func-tanh)\n    - [func Tempfile](#func-tempfile)\n    - [func Tempnam](#func-tempnam)\n    - [func Time](#func-time)\n    - [func Touch](#func-touch)\n    - [func Trim](#func-trim)\n    - [func USleep](#func-usleep)\n    - [func Unlink](#func-unlink)\n    - [type ArraySlice](#type-arrayslice)\n    - [func ArrayChunk](#func-arraychunk)\n    - [type DiskStatus](#type-diskstatus)\n    - [func DiskFreeSpace](#func-diskfreespace)\n  - [License](#license)\n\n## Installation\n\n```bash\n  go get github.com/serkanalgur/phpfuncs\n\n  # For update\n\n  go get -u github.com/serkanalgur/phpfuncs\n```\n\n## Tests\n\n```bash\n  go test ./tests/...\n```\n\n## Proper Documentation\n\nPlease Visit [https://pkg.go.dev/github.com/serkanalgur/phpfuncs](https://pkg.go.dev/github.com/serkanalgur/phpfuncs)\n\n## Functions List\n\nHere is the functions list for now:\n\n### func Abs\n\n```go\nfunc Abs(arg float64) float64\n```\n\nAbs - Absolute value.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.abs.php\u003e\n\nReturns the absolute value of number.\n\n### func Acos\n\n```go\nfunc Acos(arg float64) float64\n```\n\nAcos - Arc cosine.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.acos.php\u003e\n\nReturns the arc cosine of arg in radians. acos() is the inverse function of\ncos(), which means that a==cos(acos(a)) for every value of a that is within\nacos()' range.\n\n### func Acosh\n\n```go\nfunc Acosh(arg float64) float64\n```\n\nAcosh - Inverse hyperbolic cosine.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.acosh.php\u003e\n\nReturns the inverse hyperbolic cosine of arg, i.e. the value whose hyperbolic\ncosine is arg.\n\n### func Addslashes\n\n```go\nfunc Addslashes(s string) string\n```\n\nAddslashes - Quote string with slashes\n\nOriginal : \u003chttps://www.php.net/manual/en/function.addslashes.php\u003e\n\nReturns a string with backslashes added before characters that need to be\nescaped.\n\n### func Array\n\n```go\nfunc Array(v ...interface{}) []interface{}\n```\n\nArray - Create an array\n\nOriginal : \u003chttps://www.php.net/manual/en/function.array.php\u003e\n\n### func ArrayCountValues\n\n```go\nfunc ArrayCountValues(v []interface{}) map[interface{}]uint\n```\n\nArrayCountValues - Counts all the values of an array\n\nOriginal : \u003chttps://www.php.net/manual/en/function.array-count-values.php\u003e\n\n### func ArrayFlip\n\n```go\nfunc ArrayFlip(v map[interface{}]interface{}) map[interface{}]interface{}\n```\n\nArrayFlip - Exchanges all keys with their associated values in an array\n\nOriginal : \u003chttps://www.php.net/manual/en/function.array-flip.php\u003e\n\nArrayFlip returns an array in flip order, i.e. keys from array become values and\nvalues from array become keys.\n\n### func ArrayKeys\n\n```go\nfunc ArrayKeys(v map[string]interface{}) []string\n```\n\nArrayKeys - Return all the keys or a subset of the keys of an array\n\nOriginal : \u003chttps://www.php.net/manual/en/function.array-keys.php\u003e\n\n### func ArrayMerge\n\n```go\nfunc ArrayMerge(v ...[]interface{}) []interface{}\n```\n\nArrayMerge - Merge one or more arrays\n\nOriginal : \u003chttps://www.php.net/manual/en/function.array-merge.php\u003e\n\n### func ArrayPush\n\n```go\nfunc ArrayPush(v *[]interface{}, data ...interface{})\n```\n\nArrayPush - Push one or more elements onto the end of array\n\nOriginal : \u003chttps://www.php.net/manual/en/function.array-push.php\u003e\n\n### func ArrayReverse\n\n```go\nfunc ArrayReverse(v []interface{}) []interface{}\n```\n\nArrayReverse - Return an array with elements in reverse order\n\nOriginal : \u003chttps://www.php.net/manual/en/function.array-reverse.php\u003e\n\n### func ArrayValues\n\n```go\nfunc ArrayValues(v ...[]interface{}) (value []interface{})\n```\n\nArrayValues - Return all the values of an array\n\nOriginal : \u003chttps://www.php.net/manual/en/function.array-values.php\u003e\n\n### func Asin\n\n```go\nfunc Asin(arg float64) float64\n```\n\nAsin - Arc sine.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.asin.php\u003e\n\nReturns the arc sine of arg in radians. asin() is the inverse function of sin(),\nwhich means that a==sin(asin(a)) for every value of a that is within asin()'s\nrange.\n\n### func Asinh\n\n```go\nfunc Asinh(arg float64) float64\n```\n\nAsinh - Inverse hyperbolic sine.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.asinh.php\u003e\n\nReturns the inverse hyperbolic sine of arg, i.e. the value whose hyperbolic sine\nis arg.\n\n### func Atan\n\n```go\nfunc Atan(arg float64) float64\n```\n\nAtan - Arc tangent.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.atan.php\u003e\n\nReturns the arc tangent of arg in radians. atan() is the inverse function of\ntan(), which means that a==tan(atan(a)) for every value of a that is within\natan()'s range.\n\n### func Atan2\n\n```go\nfunc Atan2(arg float64, arg2 float64) float64\n```\n\nAtan2 - Arc tangent of two variables.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.atan2.php\u003e\n\nThis function calculates the arc tangent of the two variables x and y. It is\nsimilar to calculating the arc tangent of y / x, except that the signs of both\narguments are used to determine the quadrant of the result.\n\nThe function returns the result in radians, which is between -PI and PI\n(inclusive).\n\n### func Atanh\n\n```go\nfunc Atanh(arg float64) float64\n```\n\nAtanh - Inverse hyperbolic tangent.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.atanh.php\u003e\n\nReturns the inverse hyperbolic tangent of arg, i.e. the value whose hyperbolic\ntangent is arg.\n\n### func Base64Decode\n\n```go\nfunc Base64Decode(v string) (string, error)\n```\n\nBase64Decode - Decodes data encoded with MIME base64.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.base64-decode.php\u003e\n\nDecodes a base64 encoded data.\n\n### func Base64Encode\n\n```go\nfunc Base64Encode(v string) string\n```\n\nBase64Encode - Encodes data with MIME base64.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.base64-encode.php\u003e\n\nEncodes given data with base64.\n\n### func BaseConvert\n\n```go\nfunc BaseConvert(arg string, frombase, tobase int) (string, error)\n```\n\nBaseConvert - Convert a number between arbitrary bases.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.base-convert.php\u003e\n\nReturns a string containing number represented in base tobase. The base in which\nnumber is given is specified in frombase. Both frombase and tobase have to be\nbetween 2 and 36, inclusive. Digits in numbers with a base higher than 10 will\nbe represented with the letters a-z, with a meaning 10, b meaning 11 and z\nmeaning 35. The case of the letters doesn't matter, i.e. number is interpreted\ncase-insensitively.\n\n### func Basename\n\n```go\nfunc Basename(path string) string\n```\n\nBasename - Returns trailing name component of path.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.basename.php\u003e\n\nGiven a string containing the path to a file or directory, this function will\nreturn the trailing name component.\n\n### func Bin2Hex\n\n```go\nfunc Bin2Hex(s string) string\n```\n\nBin2Hex - Convert binary data into hexadecimal representation\n\nOriginal : \u003chttps://www.php.net/manual/en/function.bin2hex.php\u003e\n\nReturns an ASCII string containing the hexadecimal representation of str. The\nconversion is done byte-wise with the high-nibble first.\n\n### func ByteCountIEC\n\n```go\nfunc ByteCountIEC(b uint64) string\n```\n\nByteCountIEC - Bytecount \u0026 Humanize Bytes\n\nComplete calculator for DiskFreeSize\n\n### func Ceil\n\n```go\nfunc Ceil(arg float64) float64\n```\n\nCeil - Round fractions up.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.ceil.php\u003e\n\nReturns the next highest integer value by rounding up value if necessary.\n\n### func Chgrp\n\n```go\nfunc Chgrp(name string, uid, gid int) error\n```\n\nChgrp - Changes file group.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.chgrp.php\u003e\n\nAttempts to change the group of the file filename to group.\n\nOnly the superuser may change the group of a file arbitrarily; other users may\nchange the group of a file to any group of which that user is a member.\n\n### func Chmod\n\n```go\nfunc Chmod(name string, mode os.FileMode) error\n```\n\nChmod - Changes file mode\n\nOriginal : \u003chttps://www.php.net/manual/en/function.chmod.php\u003e\n\nAttempts to change the mode of the specified file to that given in mode.\n\n### func Chown\n\n```go\nfunc Chown(name string, uid int, gid int) error\n```\n\nChown - Changes file owner.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.chown.php\u003e\n\nAttempts to change the owner of the file filename to user user. Only the\nsuperuser may change the owner of a file.\n\n### func Copy\n\n```go\nfunc Copy(src, dst string) (int64, error)\n```\n\nCopy - Copies file\n\nOriginal : \u003chttps://www.php.net/manual/en/function.copy.php\u003e\n\nMakes a copy of the file source to dest.\n\n### func Cos\n\n```go\nfunc Cos(arg float64) float64\n```\n\nCos - Cosine.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.cos.php\u003e\n\ncos() returns the cosine of the arg parameter. The arg parameter is in radians.\n\n### func Cosh\n\n```go\nfunc Cosh(arg float64) float64\n```\n\nCosh - Hyperbolic cosine.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.cosh.php\u003e\n\nReturns the hyperbolic cosine of arg, defined as (exp(arg) + exp(-arg))/2.\n\n### func Count\n\n```go\nfunc Count(v []interface{}) int\n```\n\nCount - Count all elements in an array, or something in an object\n\nOriginal : \u003chttps://www.php.net/manual/en/function.count.php\u003e\n\n### func DecBin\n\n```go\nfunc DecBin(arg int64) string\n```\n\nDecBin - Hyperbolic cosine.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.decbin.php\u003e\n\nReturns a string containing a binary representation of the given number\nargument.\n\n### func DecHex\n\n```go\nfunc DecHex(arg int64) string\n```\n\nDecHex - Decimal to hexadecimal.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.dechex.php\u003e\n\nReturns a string containing a hexadecimal representation of the given unsigned\nnumber argument.\n\nThe largest number that can be converted is PHP_INT_MAX \\* 2 + 1 (or -1): on\n32-bit platforms, this will be 4294967295 in decimal, which results in dechex()\nreturning ffffffff.\n\n### func DecOct\n\n```go\nfunc DecOct(arg int64) string\n```\n\nDecOct - Decimal to Octal\n\nOriginal : \u003chttps://www.php.net/manual/en/function.decoct.php\u003e\n\nReturns a string containing an octal representation of the given number\nargument. The largest number that can be converted depends on the platform in\nuse. For 32-bit platforms this is usually 4294967295 in decimal resulting in 37777777777. For 64-bit platforms this is usually 9223372036854775807 in decimal\nresulting in 777777777777777777777.\n\n### func Deg2Rad\n\n```go\nfunc Deg2Rad(arg float64) float64\n```\n\nDeg2Rad - Converts the number in degrees to the radian equivalent.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.deg2rad.php\u003e\n\nThis function converts number from degrees to the radian equivalent.\n\nDegree180 is constant and value is 180 :)\n\n### func Delete\n\n```go\nfunc Delete(name string) error\n```\n\nDelete - Deletes a file.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.delete.php\u003e\n\nDeletes filename. Similar to the Unix C unlink() function. An E_WARNING level\nerror will be generated on failure.\n\n### func Die\n\n```go\nfunc Die(of int)\n```\n\nDie - Equivalent to exit\n\nOriginal : \u003chttps://www.php.net/manual/en/function.die.php\u003e\n\nThis language construct is equivalent to exit().\n\n### func DirName\n\n```go\nfunc DirName(path string) ([]os.FileInfo, error)\n```\n\nDirName - Returns a parent directory's path\n\nOriginal : \u003chttps://www.php.net/manual/en/function.dirname.php\u003e\n\nGiven a string containing the path of a file or directory, this function will\nreturn the parent directory's path that is levels up from the current directory.\n\n### func Echo\n\n```go\nfunc Echo(vars ...interface{})\n```\n\nEcho - Output one or more strings\n\nOriginal : \u003chttps://www.php.net/manual/en/function.echo.php\u003e\n\n### func Escapeshellarg\n\n```go\nfunc Escapeshellarg(s string) string\n```\n\nEscapeshellarg - Escape a string to be used as a shell argument\n\nOriginal: \u003chttps://www.php.net/manual/en/function.escapeshellarg.php\u003e\n\n### func Escapeshellcmd\n\n```go\nfunc Escapeshellcmd(s string) string\n```\n\nEscapeshellcmd - Escape shell metacharacters\n\nOriginal: \u003chttps://www.php.net/manual/en/function.escapeshellcmd.php\u003e\n\n### func  Exec\n\n```go\nfunc Exec(of string) string\n```\n\nExec - Start a command on system\n\nOriginal : \u003chttps://www.php.net/manual/tr/function.exec.php\u003e\n\nexec() executes the given command.\n\n### func Exit\n\n```go\nfunc Exit(of int)\n```\n\nExit - Output a message and terminate the current script\n\nOriginal : \u003chttps://www.php.net/manual/en/function.exit.php\u003e\n\nTerminates execution of the script. Shutdown functions and object destructors\nwill always be executed even if exit is called.\n\n### func Exp\n\n```go\nfunc Exp(arg float64) float64\n```\n\nExp - Calculates the exponent of e.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.exp.php\u003e\n\nReturns e raised to the power of arg.\n\nNote : 'e' is the base of the natural system of logarithms, or approximately\n2.718282.\n\n### func ExpM1\n\n```go\nfunc ExpM1(arg float64) float64\n```\n\nExpM1 - Returns exp(number) - 1, computed in a way that is accurate even when\nthe value of number is close to zero\n\nOriginal : \u003chttps://www.php.net/manual/en/function.expm1.php\u003e\n\nexpm1() returns the equivalent to 'exp(arg) - 1' computed in a way that is\naccurate even if the value of arg is near zero, a case where 'exp (arg) - 1'\nwould be inaccurate due to subtraction of two numbers that are nearly equal.\n\n### func Explode\n\n```go\nfunc Explode(s, set string) []string\n```\n\nExplode - Split a string by a string\n\nOriginal : \u003chttps://www.php.net/manual/en/function.explode.php\u003e\n\nReturns an array of strings, each of which is a substring of string formed by\nsplitting it on boundaries formed by the string delimiter.\n\n### func FClose\n\n```go\nfunc FClose(file *os.File) error\n```\n\nFClose - Closes an open file pointer\n\nOriginal : \u003chttps://www.php.net/manual/en/function.fclose.php\u003e\n\nThe file pointed to by handle is closed.\n\n### func FMod\n\n```go\nfunc FMod(arg float64, arg2 float64) float64\n```\n\nFMod - Returns the floating point remainder (modulo) of the division of the\narguments\n\nOriginal : \u003chttps://www.php.net/manual/en/function.fmod.php\u003e\n\nReturns the floating point remainder of dividing the dividend (x) by the divisor\n(y). The remainder (r) is defined as: x = i \\* y + r, for some integer i. If y is\nnon-zero, r has the same sign as x and a magnitude less than the magnitude of y.\n\nTO-DO : There is a problem with 0.2 like numbers. Will fix\n\n### func FOpen\n\n```go\nfunc FOpen(file string, mode int) (*os.File, error)\n```\n\nFOpen - Opens file\n\nOriginal : \u003chttps://www.php.net/manual/en/function.fopen.php\u003e\n\nfopen() binds a named resource, specified by filename, to a stream.\n\nMode : os.O_RDONLY | os.O_WRONLY | os.O_RDWR | os.O_APPEND | os.O_CREATE |\nos.O_EXCL | os.O_SYNC | os.O_TRUNC\n\n### func FPuts\n\n```go\nfunc FPuts(f *os.File, data string) int\n```\n\nFPuts - Alias of FWrite\n\nOriginal : \u003chttps://www.php.net/manual/en/function.fputs.php\u003e\n\nThis function is an alias of: FWrite()..\n\n### func FRead\n\n```go\nfunc FRead(f *os.File, sb int64) string\n```\n\nFRead - Binary-safe file read.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.fread.php\u003e\n\nfread() reads up to length bytes from the file pointer referenced by handle.\n\n### func FWrite\n\n```go\nfunc FWrite(f *os.File, data string) int\n```\n\nFWrite - Binary-safe file write\n\nOriginal : \u003chttps://www.php.net/manual/en/function.fwrite.php\u003e\n\nfwrite() writes the contents of string to the file stream pointed to by handle.\n\n### func FileExists\n\n```go\nfunc FileExists(path string) bool\n```\n\nFileExists - Checks whether a file or directory exists.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.file-exists.php\u003e\n\nChecks whether a file or directory exists.\n\n### func FileGetContents\n\n```go\nfunc FileGetContents(path string, includePath bool, context []string, offset int, maxlen int) string\n```\n\nFileGetContents - Reads entire file into a string.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.file-get-contents.php\u003e\n\nThis function is similar to file(), except that file_get_contents() returns the\nfile in a string, starting at the specified offset up to maxlen bytes. On\nfailure, file_get_contents() will return FALSE. TODO : Context Implementation.\n\n### func FileMime\n\n```go\nfunc FileMime(file string) time.Time\n```\n\nFileMime - Gets file modification time\n\nOriginal : \u003chttps://www.php.net/manual/en/function.filemtime.php\u003e\n\nThis function returns the time when the data blocks of a file were being written\nto, that is, the time when the content of the file was changed.\n\n### func FilePerms\n\n```go\nfunc FilePerms(path string) os.FileMode\n```\n\nFilePerms - Gets file permissions.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.fileperms.php\u003e Gets permissions\nfor the given file.\n\n### func FilePutContents\n\n```go\nfunc FilePutContents(path, data string)\n```\n\nFilePutContents - Write data to a file\n\nOriginal : \u003chttps://www.php.net/manual/en/function.file-put-contents.php\u003e\n\nThis function is identical to calling fopen(), fwrite() and fclose()\nsuccessively to write data to a file. TODO: Flags\n\n### func FileSize\n\n```go\nfunc FileSize(path string) (int64, error)\n```\n\nFileSize - Gets file permissions.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.filesize.php\u003e Gets permissions\nfor the given file.\n\n### func FileType\n\n```go\nfunc FileType(fs string) (string, error)\n```\n\nFileType - Gets file type.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.filetype.php\u003e\n\nReturns the type of the given file.\n\n### func Floor\n\n```go\nfunc Floor(arg float64) float64\n```\n\nFloor - Round fractions down\n\nOriginal : \u003chttps://www.php.net/manual/en/function.floor.php\u003e\n\nReturns the next lowest integer value (as float) by rounding down value if\nnecessary.\n\n### func Glob\n\n```go\nfunc Glob(path string) (matches []string, err error)\n```\n\nGlob - Find pathnames matching a pattern.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.glob.php\u003e\n\nThe glob() function searches for all the pathnames matching pattern according to\nthe rules used by the libc glob() function, which is similar to the rules used\nby common shells.\n\n### func Hex2Bin\n\n```go\nfunc Hex2Bin(s string) string\n```\n\nHex2Bin - Decodes a hexadecimally encoded binary string\n\nOriginal : \u003chttps://www.php.net/manual/en/function.hex2bin.php\u003e\n\nDecodes a hexadecimally encoded binary string.\n\n```NOTE: This function does NOT convert a hexadecimal number to a binary number. This can be done using the BaseConvert() function.```\n\n### func HexDec\n\n```go\nfunc HexDec(arg string) int64\n```\n\nHexDec - Hexadecimal to decimal\n\nOriginal : \u003chttps://www.php.net/manual/en/function.hexdec.php\u003e\n\nReturns the decimal equivalent of the hexadecimal number represented by the\nhex_string argument. hexdec() converts a hexadecimal string to a decimal number.\n\nhexdec() will ignore any non-hexadecimal characters it encounters. As of PHP\n7.4.0 supplying any invalid characters is deprecated.\n\n### func HtmlspecialChars\n\n```go\nfunc HtmlspecialChars(s string) string\n```\n\nHtmlspecialChars - Convert special characters to HTML entities.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.htmlspecialchars.php\u003e\n\nCertain characters have special significance in HTML, and should be represented\nby HTML entities if they are to preserve their meanings. This function returns a\nstring with these conversions made\n\n### func HtmlspecialCharsdecode\n\n```go\nfunc HtmlspecialCharsdecode(s string) string\n```\n\nHtmlspecialCharsdecode - Convert special HTML entities back to characters.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.htmlspecialchars-decode.php\u003e\n\nConvert special HTML entities back to characters.\n\n### func HyPot\n\n```go\nfunc HyPot(arg, arg2 float64) float64\n```\n\nHyPot - Calculate the length of the hypotenuse of a right-angle triangle.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.hypot.php\u003e\n\nhypot() returns the length of the hypotenuse of a right-angle triangle with\nsides of length x and y, or the distance of the point (x, y) from the origin.\nThis is equivalent to sqrt(x*x + y*y).\n\n### func Implode\n\n```go\nfunc Implode(sep string, v []string) string\n```\n\nImplode - Join array elements with a string.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.implode.php\u003e\n\nJoin array elements with a glue string.\n\n### func InArray\n\n```go\nfunc InArray(needle interface{}, haystack interface{}) bool\n```\n\nInArray - Similar function of in_array in PHP\n\nOriginal : \u003chttps://www.php.net/manual/en/function.in-array.php\u003e\n\n  ```needle : string, int\n    haystack : should be an array\n    strict : set true for type check\n    return boolean true / false\n  ```\n\n### func IntDiv\n\n```go\nfunc IntDiv(arg, arg2 int64) (quotient int64)\n```\n\nIntDiv - Integer division.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.intdiv.php\u003e\n\nReturns the integer quotient of the division of dividend by divisor.\n\n### func IsArray\n\n```go\nfunc IsArray(v interface{}) bool\n```\n\nIsArray - Finds whether a variable is an array.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.is-array.php\u003e\n\nFinds whether the given variable is an array.\n\n### func IsDir\n\n```go\nfunc IsDir(path string) bool\n```\n\nIsDir - Tells whether the filename is a directory.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.is-dir.php\u003e\n\nTells whether the given filename is a directory.\n\n### func IsExecutable\n\n```go\nfunc IsExecutable(path string) bool\n```\n\nIsExecutable - Tells whether the filename is executable\n\nOriginal : \u003chttps://www.php.net/manual/en/function.is-executable.php\u003e\n\nTells whether the filename is executable.\n\n### func IsFile\n\n```go\nfunc IsFile(path string) bool\n```\n\nIsFile - Tells whether the filename is a regular file.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.is-file.php\u003e\n\nTells whether the given file is a regular file.\n\n### func IsFinite\n\n```go\nfunc IsFinite(arg float64, ch int) bool\n```\n\nIsFinite - Finds whether a value is a legal finite number.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.is-finite.php\u003e\n\nChecks whether val is a legal finite on this platform.\n\n### func IsInFinite\n\n```go\nfunc IsInFinite(arg float64, ch int) bool\n```\n\nIsInFinite - Finds whether a value is infinite.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.is-infinite.php\u003e\n\nReturns TRUE if val is infinite (positive or negative), like the result of\nlog(0) or any value too big to fit into a float on this platform.\n\n### func IsLink\n\n```go\nfunc IsLink(path string) bool\n```\n\nIsLink - Tells whether the filename is a symbolic link.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.is-link.php\u003e\n\nTells whether the given file is a symbolic link.\n\n### func IsNan\n\n```go\nfunc IsNan(arg float64) bool\n```\n\nIsNan - Finds whether a value is infinite.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.is-infinite.php\u003e\n\nReturns TRUE if val is infinite (positive or negative), like the result of\nlog(0) or any value too big to fit into a float on this platform.\n\n### func IsReadable\n\n```go\nfunc IsReadable(path string) bool\n```\n\nIsReadable - Tells whether a file exists and is readable.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.is-readable.php\u003e\n\nTells whether a file exists and is readable.\n\n### func IsURL\n\n```go\nfunc IsURL(str string) bool\n```\n\nIsURL function\n\n### func IsWritable\n\n```go\nfunc IsWritable(path string) bool\n```\n\nIsWritable - Tells whether the filename is writable.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.is-writable.php\u003e\n\nReturns TRUE if the filename exists and is writable. The filename argument may\nbe a directory name allowing you to check if a directory is writable.\n\n### func IsWriteable\n\n```go\nfunc IsWriteable(path string) bool\n```\n\nIsWriteable - Tells whether the filename is writable.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.is-writeable.php\u003e\n\nReturns TRUE if the filename exists and is writable. The filename argument may\nbe a directory name allowing you to check if a directory is writable.\n\n### func Join\n\n```go\nfunc Join(set string, s []string) string\n```\n\nJoin - Alias o Implode\n\nOriginal : \u003chttps://www.php.net/manual/en/function.join.php\u003e\n\nAlias o Implode\n\n### func LcgValue\n\n```go\nfunc LcgValue() float64\n```\n\nLcgValue - Combined linear congruential generator\n\nOriginal : \u003chttps://www.php.net/manual/en/function.lcg-value.php\u003e\n\nlcg_value() returns a pseudo random number in the range of (0, 1). The function\ncombines two CGs with periods of 2^31 - 85 and 2^31 - 249. The period of this\nfunction is equal to the product of both primes.\n\n### func Link\n\n```go\nfunc Link(target, link string)\n```\n\nLink - Create a hard link\n\nOriginal : \u003chttps://www.php.net/manual/en/function.link.php\u003e\n\nlink() creates a hard link.\n\n### func Log\n\n```go\nfunc Log(arg float64) float64\n```\n\nLog - Natural logarithm\n\nOriginal : \u003chttps://www.php.net/manual/en/function.log.php\u003e\n\nIf the optional base parameter is specified, log() returns logbase arg,\notherwise log() returns the natural logarithm of arg.\n\n### func Log10\n\n```go\nfunc Log10(arg float64) float64\n```\n\nLog10 - Base-10 logarithm\n\nOriginal : \u003chttps://www.php.net/manual/en/function.log10.php\u003e\n\nReturns the base-10 logarithm of arg.\n\n### func Log1P\n\n```go\nfunc Log1P(arg float64) float64\n```\n\nLog1P - Returns log(1 + number), computed in a way that is accurate even when\nthe value of number is close to zero.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.log1p.php\u003e\n\nlog1p() returns log(1 + number) computed in a way that is accurate even when the\nvalue of number is close to zero. log() might only return log(1) in this case\ndue to lack of precision.\n\n### func Ltrim\n\n```go\nfunc Ltrim(s, set string) string\n```\n\nLtrim - Strip whitespace (or other characters) from the beginning of a string\n\nOriginal : \u003chttps://www.php.net/manual/en/function.ltrim.php\u003e\n\nStrip whitespace (or other characters) from the beginning of a string.\n\n### func MD5\n\n```go\nfunc MD5(v string) string\n```\n\nMD5 - Calculate the md5 hash of a string.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.md5.php\u003e\n\nCalculates the MD5 hash of str using the RSA Data Security, Inc. MD5\nMessage-Digest Algorithm.\n\n### func MD5File\n\n```go\nfunc MD5File(v string) string\n```\n\nMD5File - Calculates the md5 hash of a given file.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.md5-file.php\u003e\n\nCalculates the MD5 hash of the file specified by the filename parameter using\nthe RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash.\nThe hash is a 32-character hexadecimal number.\n\n### func Max\n\n```go\nfunc Max(arg, arg2 float64) float64\n```\n\nMax - Find highest value.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.max.php\u003e\n\nIf at least two parameters are provided, max() returns the biggest of these\nvalues.\n\n### func MbStrtolower\n\n```go\nfunc MbStrtolower(s string) string\n```\n\nMbStrtolower - Make a string lowercase\n\nOriginal : \u003chttps://www.php.net/manual/en/function.mb-strtolower.php\u003e\n\nReturns str with all alphabetic characters converted to lowercase.\n\n### func MbStrtoupper\n\n```go\nfunc MbStrtoupper(s string) string\n```\n\nMbStrtoupper - Make a string uppercase\n\nOriginal : \u003chttps://www.php.net/manual/en/function.mb-strtoupper.php\u003e\n\nReturns str with all alphabetic characters converted to uppercase.\n\n### func Min\n\n```go\nfunc Min(arg, arg2 float64) float64\n```\n\nMin - Find lowest value.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.min.php\u003e\n\nIf at least two parameters are provided, min() returns the smallest of these\nvalues.\n\n### func MkDir\n\n```go\nfunc MkDir(path string, mode os.FileMode) error\n```\n\nMkDir - Makes directory.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.mkdir.php\u003e\n\nAttempts to create the directory specified by pathname.\n\n### func Nl2br\n\n```go\nfunc Nl2br(s string) string\n```\n\nNl2br - Inserts HTML line breaks before all newlines in a string\n\nOriginal : \u003chttps://www.php.net/manual/en/function.nl2br.php\u003e\n\nReturns string with ```\u003cbr /\u003e``` or ```\u003cbr\u003e``` inserted before all newlines (\\r\\n, \\n\\r, \\n\nand \\r).\n\n### func Now\n\n```go\nfunc Now() int64\n```\n\nNow - Similar function of time() in PHP.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.time.php\u003e\n\nReturns the current time measured in the number of seconds since the Unix Epoch\n(January 1 1970 00:00:00 GMT).\n\n### func OctDec\n\n```go\nfunc OctDec(arg string) int64\n```\n\nOctDec - Octal to decimal\n\nOriginal : \u003chttps://www.php.net/manual/en/function.octdec.php\u003e\n\nReturns the decimal equivalent of the octal number represented by the\noctal_string argument.\n\n### func Pi\n\n```go\nfunc Pi() float64\n```\n\nPi - Get value of pi\n\nOriginal : \u003chttps://www.php.net/manual/en/function.pi.php\u003e\n\nReturns an approximation of pi.\n\n### func Pow\n\n```go\nfunc Pow(arg, arg2 float64) float64\n```\n\nPow - Exponential expression\n\nOriginal : \u003chttps://www.php.net/manual/en/function.pow.php\u003e\n\nReturns base raised to the power of exp.\n\n### func Print\n\n```go\nfunc Print(vars string)\n```\n\nPrint - Output a string\n\nOriginal : \u003chttps://www.php.net/manual/en/function.print.php\u003e\n\n### func PrintR\n\n```go\nfunc PrintR(vars ...interface{})\n```\n\nPrintR - Prints human-readable information about a variable\n\nOriginal : \u003chttps://www.php.net/manual/en/function.print-r.php\u003e\n\n### func Rad2Deg\n\n```go\nfunc Rad2Deg(arg float64) float64\n```\n\nRad2Deg - Converts the radian number to the equivalent number in degrees.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.rad2deg.php\u003e\n\nThis function converts number from radian to degrees. Degree180 is constant and\nvalue is 180 :)\n\n### func Rand\n\n```go\nfunc Rand(args ...int) int\n```\n\nRand - Generate a random integer\n\nOriginal : \u003chttps://www.php.net/manual/en/function.rand.php\u003e\n\nIf you want a random number between 5 and 15 (inclusive), for example, use\nRand(5, 15).\n\n### func ReadLink\n\n```go\nfunc ReadLink(path string) (string, error)\n```\n\nReadLink - Returns the target of a symbolic link.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.readlink.php\u003e\n\nreadlink() does the same as the readlink C function.\n\n### func RealPath\n\n```go\nfunc RealPath(path string) (string, error)\n```\n\nRealPath - Returns canonicalized absolute pathname.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.realpath.php\u003e\n\nrealpath() expands all symbolic links and resolves references to /./, /../ and\nextra / characters in the input path and returns the canonicalized absolute\npathname.\n\n### func Rename\n\n```go\nfunc Rename(oldpath, newpath string) error\n```\n\nRename - Renames a file or directory.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.rename.php\u003e\n\nAttempts to rename oldname to newname, moving it between directories if\nnecessary. If renaming a file and newname exists, it will be overwritten. If\nrenaming a directory and newname exists, this function will emit a warning.\n\n### func RmDir\n\n```go\nfunc RmDir(path string) error\n```\n\nRmDir — Removes directory.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.rmdir.php\u003e\n\nAttempts to remove the directory named by dirname. The directory must be empty,\nand the relevant permissions must permit this. A E_WARNING level error will be\ngenerated on failure.\n\n### func Round\n\n```go\nfunc Round(arg float64) float64\n```\n\nRound - Rounds a float\n\nOriginal : \u003chttps://www.php.net/manual/en/function.round.php\u003e\n\nReturns the rounded value of val to specified precision (number of digits after\nthe decimal point). precision can also be negative or zero (default).\n\n### func Rtrim\n\n```go\nfunc Rtrim(s, set string) string\n```\n\nRtrim - Strip whitespace (or other characters) from the end of a string\n\nOriginal : \u003chttps://www.php.net/manual/en/function.rtrim.php\u003e\n\nThis function returns a string with whitespace (or other characters) stripped\nfrom the end of str.\n\n### func Sha1\n\n```go\nfunc Sha1(v string) string\n```\n\nSha1 - Calculate the sha1 hash of a string.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.sha1.php\u003e\n\nCalculates the sha1 hash of str using the US Secure Hash Algorithm 1.\n\n### func Sha1File\n\n```go\nfunc Sha1File(v string) string\n```\n\nSha1File - Calculate the sha1 hash of a file.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.sha1-file.php\u003e\n\nCalculates the sha1 hash of the file specified by filename using the US Secure\nHash Algorithm 1, and returns that hash. The hash is a 40-character hexadecimal\nnumber.\n\n### func  ShellExec\n\n```go\nfunc ShellExec(of string) string\n```\n\nShellExec - Execute command via shell and return the complete output as a string\n\nOriginal : \u003chttps://www.php.net/manual/en/function.shell-exec.php\u003e\n\nThis function is identical to the backtick operator.\n\n### func Sin\n\n```go\nfunc Sin(arg float64) float64\n```\n\nSin - Sine.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.sin.php\u003e\n\nsin() returns the sine of the arg parameter. The arg parameter is in radians.\n\n### func Sinh\n\n```go\nfunc Sinh(arg float64) float64\n```\n\nSinh - Hyperbolic sine.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.sinh.php\u003e\n\nReturns the hyperbolic sine of arg, defined as (exp(arg) - exp(-arg))/2.\n\n### func Sizeof\n\n```go\nfunc Sizeof(v []interface{}) int\n```\n\nSizeof - Alias of Count\n\nOriginal : \u003chttps://www.php.net/manual/en/function.sizeof.php\u003e\n\n### func Sleep\n\n```go\nfunc Sleep(t int64)\n```\n\nSleep - Delay in seconds\n\nOriginal : \u003chttps://www.php.net/manual/en/function.sleep.php\u003e\n\nDelays the program execution for the given number of seconds.\n\n### func Sort\n\n```go\nfunc Sort(v interface{}, flag string) bool\n```\n\nSort - Sort an array\n\nOriginal : \u003chttps://www.php.net/manual/en/function.sort.php\u003e\n\nThis function sorts an array. Elements will be arranged from lowest to highest\nwhen this function has completed.\n\nFlags are same as php sort.\n\n  ```SORT_REGULAR - compare items normally;\n  SORT_NUMERIC - compare items numerically\n  SORT_STRING - compare items as strings\n  SORT_NATURAL - compare items as strings using \"natural ordering\" like natsort()\n  ```\n\n### func Sqrt\n\n```go\nfunc Sqrt(arg float64) float64\n```\n\nSqrt - Square root.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.sqrt.php\u003e\n\nReturns the square root of arg.\n\n### func Stat\n\n```go\nfunc Stat(name string) (os.FileInfo, error)\n```\n\nStat - Gives information about a file.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.stat.php\u003e\n\nGathers the statistics of the file named by filename. If filename is a symbolic\nlink, statistics are from the file itself, not the symlink. Prior to PHP 7.4.0,\non Windows NTS builds the size, atime, mtime and ctime statistics have been from\nthe symlink, in this case.\n\n### func StrRepeat\n\n```go\nfunc StrRepeat(s string, count int) string\n```\n\nStrRepeat - Repeat a string\n\nOriginal : \u003chttps://www.php.net/manual/en/function.str-repeat.php\u003e\n\nReturns string repeated times times.\n\n### func StrReplace\n\n```go\nfunc StrReplace(find, replace, s string, n int) string\n```\n\nStrReplace - Replace all occurrences of the search string with the replacement\nstring\n\nOriginal : \u003chttps://www.php.net/manual/en/function.str-replace.php\u003e\n\nThis function returns a string or an array with all occurrences of search in\nsubject replaced with the given replace value.\n\nn value must set to -1 if you want to infinite change\n\n### func StringWithCharset\n\n```go\nfunc StringWithCharset(length int, charset string) string\n```\n\nStringWithCharset - Create RAndom and Unique String\n\n### func Strtolower\n\n```go\nfunc Strtolower(s string) string\n```\n\nStrtolower - Make a string lowercase\n\nOriginal : \u003chttps://www.php.net/manual/en/function.strtolower.php\u003e\n\nReturns string with all alphabetic characters converted to lowercase.\n\n### func Strtoupper\n\n```go\nfunc Strtoupper(s string) string\n```\n\nStrtoupper - Make a string uppercase\n\nOriginal : \u003chttps://www.php.net/manual/en/function.strtoupper.php\u003e\n\nReturns string with all alphabetic characters converted to uppercase.\n\n### func SymLink\n\n```go\nfunc SymLink(target, link string)\n```\n\nSymLink - Creates a symbolic link\n\nOriginal : \u003chttps://www.php.net/manual/en/function.symlink.php\u003e\n\nsymlink() creates a symbolic link to the existing target with the specified name\nlink.\n\n### func Tan\n\n```go\nfunc Tan(arg float64) float64\n```\n\nTan - Tangent.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.tan.php\u003e\n\ntan() returns the tangent of the arg parameter. The arg parameter is in radians.\n\n### func Tanh\n\n```go\nfunc Tanh(arg float64) float64\n```\n\nTanh - Hyperbolic tangent.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.tanh.php\u003e\n\nReturns the hyperbolic tangent of arg, defined as sinh(arg)/cosh(arg).\n\n### func Tempfile\n\n```go\nfunc Tempfile() (f *os.File)\n```\n\nTempfile - Creates a temporary file\n\nOriginal : \u003chttps://www.php.net/manual/en/function.tmpfile.php\u003e\n\nCreates a temporary file with a unique name in read-write (w+) mode and returns\na file handle.\n\nThe file is automatically removed when closed (for example, by calling fclose(),\nor when there are no remaining references to the file handle returned by\ntmpfile()), or when the script ends.\n\n### func Tempnam\n\n```go\nfunc Tempnam(dir, prefix string) string\n```\n\nTempnam - Create file with unique file name\n\nOriginal : \u003chttps://www.php.net/manual/en/function.tempnam.php\u003e\n\nCreates a file with a unique filename, with access permission set to 0600, in\nthe specified directory. If the directory does not exist or is not writable,\ntempnam() may generate a file in the system's temporary directory, and return\nthe full path to that file, including its name.\n\n### func Time\n\n```go\nfunc Time() int64\n```\n\nTime - Similar function of time() in PHP.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.time.php\u003e\n\nReturns the current time measured in the number of seconds since the Unix Epoch\n(January 1 1970 00:00:00 GMT).\n\n### func Touch\n\n```go\nfunc Touch(path string, t int64, at int64) bool\n```\n\nTouch - Sets access and modification time of file\n\nOriginal : \u003chttps://www.php.net/manual/en/function.touch.php\u003e\n\nAttempts to set the access and modification times of the file named in the\nfilename parameter to the value given in time. Note that the access time is\nalways modified, regardless of the number of parameters. If the file does not\nexist, it will be created.\n\n### func Trim\n\n```go\nfunc Trim(s, set string) string\n```\n\nTrim - Strip whitespace (or other characters) from the beginning and end of a\nstring\n\nOriginal : \u003chttps://www.php.net/manual/en/function.trim.php\u003e\n\nThis function returns a string with whitespace stripped from the beginning and\nend of str.\n\n### func USleep\n\n```go\nfunc USleep(t int64)\n```\n\nUSleep - Delay in microseconds\n\nOriginal : \u003chttps://www.php.net/manual/en/function.usleep.php\u003e\n\nDelays program execution for the given number of microseconds.\n\n### func Unlink\n\n```go\nfunc Unlink(name string) error\n```\n\nUnlink - Deletes a file.\n\nOriginal : \u003chttps://www.php.net/manual/en/function.unlink.php\u003e\n\nDeletes filename. Similar to the Unix C unlink() function. An E_WARNING level\nerror will be generated on failure.\n\n### type ArraySlice\n\n```go\ntype ArraySlice []interface{}\n```\n\nArraySlice type -- Required for ArrayChunk\n\n### func ArrayChunk\n\n```go\nfunc ArrayChunk(v ArraySlice, size int) ArraySlice\n```\n\nArrayChunk - Split an array into chunks\n\nOriginal : \u003chttps://www.php.net/manual/en/function.array-chunk.php\u003e\n\n### type DiskStatus\n\n```go\ntype DiskStatus struct {\n Free string `json:\"Free\"`\n}\n```\n\nDiskStatus struct\n\n### func DiskFreeSpace\n\n```go\nfunc DiskFreeSpace(path string) (disk DiskStatus)\n```\n\nDiskFreeSpace - Returns available space on filesystem or disk partition\n\nOriginal : \u003chttps://www.php.net/manual/en/function.disk-free-space.php\u003e\n\nGiven a string containing a directory, this function will return the number of\nbytes available on the corresponding filesystem or disk partition.\n\nDEVELOPER NOTE : PROBABLY WORKING ON ONLY LINUX AND MAC. TO-DO : WINDOWS\n\n## License\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fserkanalgur%2Fphpfuncs.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fserkanalgur%2Fphpfuncs?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserkanalgur%2Fphpfuncs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserkanalgur%2Fphpfuncs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserkanalgur%2Fphpfuncs/lists"}