| 9 | | We use $object->key to get the value from the object. |
| 10 | | To use $object['key'] you must cast the object to an array. |
| 11 | | Of course we can use $object->key through out. |
| 12 | | But all of the other functions are coded in $object['key'] style. |
| | 9 | We use |
| | 10 | {{{ |
| | 11 | $object->key |
| | 12 | }}} |
| | 13 | to get the value from the object. |
| | 14 | To use |
| | 15 | {{{ |
| | 16 | $object['key'] |
| | 17 | }}} |
| | 18 | you must cast the object to an array. |
| | 19 | Of course we can use |
| | 20 | {{{ |
| | 21 | $object->key |
| | 22 | }}} |
| | 23 | through out. |
| | 24 | But all of the other functions are coded in |
| | 25 | {{{ |
| | 26 | $object['key'] |
| | 27 | }}} |
| | 28 | style. |