EXPERIMENTAL: PHPAssociativeArray converts a Go AssociativeArray to a zend_array
(arr AssociativeArray[T])
| 218 | |
| 219 | // EXPERIMENTAL: PHPAssociativeArray converts a Go AssociativeArray to a zend_array |
| 220 | func PHPAssociativeArray[T any](arr AssociativeArray[T]) unsafe.Pointer { |
| 221 | return phpArray[T](arr.Map, arr.Order) |
| 222 | } |
| 223 | |
| 224 | func phpArray[T any](entries map[string]T, order []string) unsafe.Pointer { |
| 225 | var zendArray *C.zend_array |
no outgoing calls