We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
def
1 parent 255d7e6 commit ee8a8e6Copy full SHA for ee8a8e6
manual/en-US/chapters/packages/data.md
@@ -51,10 +51,7 @@ $object->bind(array('goo' => 'car');
51
// Get a plain object version of the JData.
52
$stdClass = $object->dump();
53
54
-// Set a property with a default value if it is not already set.
55
-$object->def('foo', 'oof');
56
-
57
-// An alternative technique to get a value or a default.
+// Get a property with a default value if it is not already set.
58
$foo = $object->foo ?: 'The default';
59
60
// Iterate over the properties as if the object were a real array.
0 commit comments