summaryrefslogtreecommitdiffstats
path: root/oo/blank_object.php
blob: 25803d0304a59f7233056e28490a752206d7242e (plain)
1
2
3
4
5
6
7
8
9
10
<?php

/* stdClass is the default PHP object. stdClass has no properties, methods or parent.
 * It does not support magic methods, and implements no interfaces.
 * When you cast a scalar or array as Object, you get an instance of stdClass. Bare bones data structure for key-val entries
 */

$obj = new StdClass();
$obj->foo = 'bar';