Store an array, and get back an object?
-
On one page I store an array (from a form submission) which looks like this:
Array ( [id] => 8 [form_id] => 1 [date_created] => 2013-06-15 20:47:48 [is_starred] => 0 [is_read] => 0 )
On the next page I fetch the array out of the session and it now looks like this:
Recursive_ArrayAccess Object ( [container:protected] => Array ( [id] => 10 [form_id] => 1 [date_created] => 2013-06-15 21:26:42 [is_starred] => 0 [is_read] => 0 ) )
I can still access this object like an array, but just wondering what the reason for this apparent change is.
— Jason
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Store an array, and get back an object?’ is closed to new replies.