mirror of
https://github.com/php-win-ext/phpy.git
synced 2026-03-25 17:32:16 +01:00
24 lines
461 B
Markdown
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. |