gophp

package module
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const Version = "1.0.8"

Variables

This section is empty.

Functions

func ArrayColumn

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

ArrayColumn array_column()

func BaseConvert

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

func ChunkSplit

func ChunkSplit(body string, chunklen uint, end string) string

ChunkSplit 将字符串拆分成更小的块

func Empty

func Empty(value interface{}) bool

Empty checks if a variable is empty (nil, zero value, or empty string).

func Isset

func Isset(value interface{}) bool

func Rtrim

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

func Serialize

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

Serialize 序列

func StrPad

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

func Strtr

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