Added info for stdClass (#31363)

* Update index.md

* fix: changed strClass to stdClass
pull/35315/head
Daniele Pedone 2019-02-20 16:03:27 +01:00 committed by Randell Dawson
parent 6048f24340
commit 4bd426500f
1 changed files with 2 additions and 0 deletions

View File

@ -109,3 +109,5 @@ $herbie = new Car();
echo $herbie->model; 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.