Added info for stdClass (#31363)

* Update index.md

* fix: changed strClass to stdClass
This commit is contained in:
Daniele Pedone
2019-02-20 16:03:27 +01:00
committed by Randell Dawson
parent 6048f24340
commit 4bd426500f

View File

@ -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.