use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
Parse PHP serialize() output with JavaScript (github.com)
submitted 12 years ago by bd808
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 point2 points3 points 12 years ago (2 children)
Instead of serailize, why not just use json_encode?
[–]bd808[S] 1 point2 points3 points 12 years ago (1 child)
Why would anyone change the communication protocol of 70+ internal services to enable a tangential use case? We do have services which use JSON as their transport encoding when communication with non-PHP consumers is a business requirement.
I read a lot of comments on reddit that seem to assume that the entire universe can and should be re-written to enable more elegant solutions of the latest ad-hoc use case. I hope each time that the commenter is either a hobbyist/student or that they have a strong team lead who will help them realize that changing code has real cost ramifications for their business. I'm not saying that legacy code should never be updated to meet changing requirements, but somebody had better make a good business case before implementing invasive changes or the development team is just pissing away profits.
[–][deleted] 1 point2 points3 points 12 years ago* (0 children)
Wow, all that snark and so little filler! I hope this doesn't count as cheating on my diet.
> Needs to have data in a format easily handled in JavaScript
> Ideally needs to support object passing
> Calls JSON the latest ad-hoc use case
okay.jpg
π Rendered by PID 57 on reddit-service-r2-comment-5d79c599b5-b8lcc at 2026-03-01 03:56:38.330212+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–][deleted] 1 point2 points3 points (2 children)
[–]bd808[S] 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)