Added info for stdClass (#31363)
* Update index.md * fix: changed strClass to stdClasspull/35315/head
parent
6048f24340
commit
4bd426500f
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue