Files
phpy/docs/en/python/reference.md
tianfenghan d669a42060 Update docs
2023-12-14 12:48:30 +08:00

337 B

Reference Types

In PHP, it is possible to pass variables by reference. In Python, this can be achieved by wrapping the variable in a phpy.Reference object.

Example

import phpy

errno = phpy.Reference()
errstr = phpy.Reference()
rs = phpy.call("stream_socket_client", 'tcp://127.0.0.1:9999', errno, errstr, 30)