gophp

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 5 Imported by: 2

README

Golang Php

📦 Golang PHP

godoc goproxy.cn goreportcard.com deps.dev

安装

go get -v -u go.dtapp.net/gophp@v1.0.3

Documentation

Index

Constants

View Source
const Version = "1.0.3"

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 added in v1.0.2

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

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

func Empty added in v1.0.3

func Empty(value interface{}) bool

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

func Isset added in v1.0.3

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