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

461 B

Object Operation

Creating an object of a class

object = phpy.Object("mysqli", arg1, arg2, arg3, ...)

Reading attributes

value = object.get("name")

Setting attributes

object.set("name", value)

Calling methods

return_value = object.call("name", arg1, arg2, arg3, ...)

Only object methods can be called using this syntax. For class static methods, please use the phpy.call() function.