String returns the internal PHP value as a string, converting if necessary.
()
| 212 | |
| 213 | // String returns the internal PHP value as a string, converting if necessary. |
| 214 | func (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. |
no outgoing calls