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.
1 parent 085eaf1 commit 866ebaeCopy full SHA for 866ebae
README.md
@@ -145,3 +145,24 @@ Clear all data:
145
146
$data->clear();
147
148
+### Magic methods
149
+
150
+Magic methods can be used to handle single level data (without dot notation).
151
152
+Set value
153
154
+ $data->name = 'John';
155
156
+Get value
157
158
+ echo $data->name;
159
160
+Check if value exists
161
162
+ if (isset($data->name)) {
163
+ // Do something...
164
+ }
165
166
+Delete value
167
168
+ unset($data->name);
0 commit comments