Added info for stdClass (#31363)
* Update index.md * fix: changed strClass to stdClass
This commit is contained in:
committed by
Randell Dawson
parent
6048f24340
commit
4bd426500f
@ -109,3 +109,5 @@ $herbie = new Car();
|
||||
echo $herbie->model;
|
||||
?>
|
||||
```
|
||||
|
||||
You can also use a predefined generic empty class `stdClass`. It's usefull for anonymous objects, dynamic properties or casting other types to object.
|
||||
|
Reference in New Issue
Block a user