Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8119371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:47:12+00:00 2026-06-06T04:47:12+00:00

I know it is possible to serialize and unserialize in PHP and then have

  • 0

I know it is possible to serialize and unserialize in PHP and then have javascript read the response, my question is can I do it the other way around? I have a function that may be called multiple times and each time it is called I need the new data added to an array or an object of some form. Then I want to take all of this data and send it to PHP to be interpreted and analyzed as if it were an array.

I think I am drawing a blank here, and this should be easily done xD Oh yeah and i am storing the information temporarily in a hidden field until it is ready for submission (I will be doing security checks in PHP as well)

Thanks 😀

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:47:13+00:00Added an answer on June 6, 2026 at 4:47 am

    To make JavaScript serialize in the syntax of PHP’s serialize would require a custom JavaScript function, however you can do what you want with JSON.

    To serialize to JSON in JavaScript you would use the stringify method of the JSON object:

    JSON.stringify(myArray)
    

    and to unserialize a JSON string in PHP you would use json_decode:

    json_decode($myJsonArray)
    

    If you want to support older browsers, you will have to include an external implementation of the JSON object. See Browser-native JSON support

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is possible in Perl, but I was wondering if this can
I need to know if it is possible to do this. I have an
Possible Duplicate: Serializing to JSON in jQuery I know how to serialize an object
I know its possible to create activities by doing something like the code bellow,
I know its possible to accept a list of objects as a parameter thanks
I know its possible to use a wakelock to hold the screen, cpu, ect
I know its possible to receive a dayClick event on Fullcalendar. But I would
I know its possible to open an app from mobile safari using custom URL
Of course I know is possible to create a file with a certain size
I am doing an android applicaiton and I know its possible to show or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.