MCPcopy Create free account
hub / github.com/deuill/go-php / String

Method String

engine/value.go:214–219  ·  view source on GitHub ↗

String returns the internal PHP value as a string, converting if necessary.

()

Source from the content-addressed store, hash-verified

212
213// String returns the internal PHP value as a string, converting if necessary.
214func (v *Value) String() string {
215 str := C.value_get_string(v.value)
216 defer C.free(unsafe.Pointer(str))
217
218 return C.GoString(str)
219}
220
221// Slice returns the internal PHP value as a slice of interface types. Non-array
222// values are implicitly converted to single-element slices.

Callers 8

InterfaceMethod · 0.95
TestValueStringFunction · 0.95
TestContextExecFunction · 0.80
TestContextEvalFunction · 0.80
TestContextLogFunction · 0.80
TestContextBindFunction · 0.80
NewValueFunction · 0.80
TestReceiverDefineFunction · 0.80

Calls

no outgoing calls

Tested by 6

TestValueStringFunction · 0.76
TestContextExecFunction · 0.64
TestContextEvalFunction · 0.64
TestContextLogFunction · 0.64
TestContextBindFunction · 0.64
TestReceiverDefineFunction · 0.64