mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
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