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

Method Int

engine/value.go:198–200  ·  view source on GitHub ↗

Int returns the internal PHP value as an integer, converting if necessary.

()

Source from the content-addressed store, hash-verified

196
197// Int returns the internal PHP value as an integer, converting if necessary.
198func (v *Value) Int() int64 {
199 return (int64)(C.value_get_long(v.value))
200}
201
202// Float returns the internal PHP value as a floating point number, converting
203// if necessary.

Callers 3

InterfaceMethod · 0.95
TestValueIntFunction · 0.95
NewValueFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestValueIntFunction · 0.76