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

24 lines
461 B
Markdown

# Object Operation
## Creating an object of a class
```python
object = phpy.Object("mysqli", arg1, arg2, arg3, ...)
```
## Reading attributes
```python
value = object.get("name")
```
## Setting attributes
```python
object.set("name", value)
```
## Calling methods
```python
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.