gophp

package
v1.0.49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayColumn added in v1.0.44

func ArrayColumn(input map[string]map[string]any, columnKey string) []any

ArrayColumn array_column()

func BaseConvert added in v1.0.44

func BaseConvert(number string, frombase, tobase int) (string, error)

func Rtrim added in v1.0.47

func Rtrim(str string, characterMask ...string) string

func Serialize

func Serialize(value any) ([]byte, error)

Serialize 序列

func StrPad added in v1.0.47

func StrPad(input string, padLength int, padString string) string

func Strtr added in v1.0.47

func Strtr(haystack string, params ...interface{}) string

Strtr strtr()

If the parameter length is 1, type is: map[string]string Strtr("baab", map[string]string{"ab": "01"}) will return "ba01" If the parameter length is 2, type is: string, string Strtr("baab", "ab", "01") will return "1001", a => 0; b => 1.

func Unserialize

func Unserialize(data []byte) (any, error)

Unserialize 反序列

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL