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

Method Bool

engine/value.go:209–211  ·  view source on GitHub ↗

Bool returns the internal PHP value as a boolean, converting if necessary.

()

Source from the content-addressed store, hash-verified

207
208// Bool returns the internal PHP value as a boolean, converting if necessary.
209func (v *Value) Bool() bool {
210 return (bool)(C.value_get_bool(v.value))
211}
212
213// String returns the internal PHP value as a string, converting if necessary.
214func (v *Value) String() string {

Callers 3

InterfaceMethod · 0.95
TestValueBoolFunction · 0.95
NewValueFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestValueBoolFunction · 0.76