From 4bd426500f637d76a65786a08577e1c748921cf5 Mon Sep 17 00:00:00 2001 From: Daniele Pedone Date: Wed, 20 Feb 2019 16:03:27 +0100 Subject: [PATCH] Added info for stdClass (#31363) * Update index.md * fix: changed strClass to stdClass --- guide/english/php/variables/data-types/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/english/php/variables/data-types/index.md b/guide/english/php/variables/data-types/index.md index f789b382cd1..f63dc0504eb 100644 --- a/guide/english/php/variables/data-types/index.md +++ b/guide/english/php/variables/data-types/index.md @@ -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.