note 94258 deleted from function.serialize by danbrown
| From: | danbrown@php.net | Date: | Mon, 26 Oct 2009 13:56:04 +0000 |
| Subject: | note 94258 deleted from function.serialize by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162114@lists.php.net to get a copy of this message | ||
Note Submitter: a-non
----
@Alessandro Segala
while json_encode is faster, determine if accuracy in restoration is important:
- json_encode ignores protected / private object variables
- json_encode does not store original object class type
- json_encode restores associative arrays as objects
- json_encode stores numerical indexes as strings if there are any string indexes